Guidelines for calling controller methods in helper modules?
Posted
by keruilin
on Stack Overflow
See other posts from Stack Overflow
or by keruilin
Published on 2010-05-26T01:08:48Z
Indexed on
2010/05/26
1:31 UTC
Read the original article
Hit count: 359
Few questions:
Is it possible to call a controller method in a helper module (e.g., application helper)?
If so, how does the helper handle the rendering of views? Ignore it?
In what instances would you want to call a controller method from a helper? Is it bad practice?
Do you have any sample code where you're calling controller methods in helper?
© Stack Overflow or respective owner