On 16.11.2005, at 15.03, Martin wrote:
I’m on rails version 0.14.3.
The methods of the controller helper module are not available in the
controller instance. They are available on the view. Verified it
plain new project.
May this be a bug or am I missing something?
No, that’s like it’s supposed to be. Helpers are methods meant to
make views cleaner by encapsulating common behaviour in one place.
They are thus not available in controllers.
You can, however, include them in your controllers, as well:
You might consider, however, whether your code is in the right place
in helpers if you need a lot of it often in controllers in contrast