how to call a helper method from controller in rails?
Posted
by siulamvictor
on Stack Overflow
See other posts from Stack Overflow
or by siulamvictor
Published on 2010-05-13T10:51:42Z
Indexed on
2010/05/13
10:54 UTC
Read the original article
Hit count: 216
I created a helper method for some simple calculation. This helper method will just return an integer. I need the helper in both controllers and views.
Unfortunately, it work well in views but not in controllers. I get the undefined local variable or method
error. How can I fix it?
Thanks all
© Stack Overflow or respective owner