Displaying 2 results from an estimated 2 matches for "help_m".
Did you mean:
help__
2006 Apr 08
2
Cannot use view helpers in RJS helpers
Any ideas why I would get an error in a RJS helper on view helpers
such as number_to_currency.
Example:
# my_template.rjs
page.help_me
# my_helper for my_controller
def help_me
number_to_currency(10)
end
I have also tired page.number_to_currency but that doesn''t work either.
Cheers,
Nicholas
2006 Aug 13
2
Writing a Helper function
I''ve finally gotten to the point where I want to write my own helper
function to call from my views. I used the script/generate to create my
Controller so I also got the helper file.
I defined the method I wanted to use in the helper rb file, but when I
try to call them from the view I get a NoMethodError raised.
Is there anything else I have to do besides creating the method in the