Forum: Ruby on Rails RE: no helper methods in controller

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E3be3af92e8756ffe1f940ac5fd57129?d=identicon&s=25 torben.wolm (Guest)
on 2005-11-16 15:23
(Received via mailing list)
> Hmm, the API docs at
> http://api.rubyonrails.com/classes/ActionControlle...
>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
2585e5de3d03793e39077e3d8b73dfaf?d=identicon&s=25 ronnylist (Guest)
on 2005-11-16 16:11
(Received via mailing list)
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
This topic is locked and can not be replied to.