Hi,
Not able to recognize helper class method in controller!
When I try to call some method “get_formatted()” in my controller, it
says local method not recognized.
Please help me out.
Thanks,
josua
Hi,
Not able to recognize helper class method in controller!
When I try to call some method “get_formatted()” in my controller, it
says local method not recognized.
Please help me out.
Thanks,
josua
joshua asem wrote:
Hi,
Not able to recognize helper class method in controller!
When I try to call some method “get_formatted()” in my controller, it
says local method not recognized.Please help me out.
Thanks,
josua
Hi, by default helpers are for views. You could probably include the
module manually, but thats not really what they’re for.
A.
Hi,
When I tried accessing in controller like this :
MyHelper::get_team_leve_report
I got the same problem.
Just help me out in making my controller to transfer some of my code to
the helper class.
Thanks,
joshua
helpers are for views. If you need to move code out of the controller,
ask
these questions:
Controllers should really only contain flow logic… basically, receive
and
route user requests.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs