Helpers help generate code for the view. For example, if you have an array of items that need to be rendered in a specific way, you can encapsulate that functionality in a helper method, and call it from the view. It helps clean up the view code, and adds code reuse. So helpers are meant to be for views, not controllers.
On Mon, Jul 11, 2011 at 1:06 PM, Rodrigo Ruiz <[email protected]>wrote: > I'd like to know where exactly are helpers available by default? > > For example, if I have a PagesController, will my PagesHelper methods be > available at PagesController? or just at the Pages's views? > > Thank you, > Rodrigo > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

