ruby - Why are all Rails helpers available to all views, all the time? Is there a way to disable this? -


Why do I use helpful methods for controlling the views of different controllers? Is there a way to disable it without hacking / patching rail?

@ George Sarebar's law does not work as Rail 3.1; There has been a lot of change in the code.

However, now it is a better way of disabling this feature in 3.1 railway (and hopefully later). In your config / application.rb, add this line:

  config.action_controller.include_all_helpers = false  

This will be.

(For those who are interested).


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -