RE: no helper methods in controller


#1

Hmm, the API docs at
http://api.rubyonrails.com/classes/ActionController/Helpers/Cl
assMethods.html
probably needs to be updated. (Or does it reflect 1.0?)

‘helper :something’ doesn’t work, ‘include SomeHelper’ works.

The documentation says that the helper will be included in the “template
class”,

so writing

“helper :Something”

should make the SomethingHelper module available in the view. Not in the
controller…

/Torben


#2

On Wed, Nov 16, 2005 at 03:16:34PM +0100, Torben Wölm wrote:

“helper :Something”

should make the SomethingHelper module available in the view. Not in the controller…

Sorry, my bad. Should’ve read more carefully.

Thanks.

Ronny