dimanche 29 novembre 2015

How to raise if an action method is missing in Rails 3

I learnt from rails 3 rendering view without action that it's possible for a request to handle a request even if there's no public controller method corresponding to the action.

Is it possible in Rails 3 to configure the development environment to automatically raise in such a scenario by modifying config/environments/development.rb to fail if there isn't a public (as opposed to protected or private) controller method corresponding to the action?

Aucun commentaire:

Enregistrer un commentaire