Monday, July 11, 2011

Re: [Rails] Help with Helpers

On 11 July 2011 08:36, Rodrigo Ruiz <rodrigo.ruiz7@gmail.com> 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?

In addition to other replies note that logic in controllers should
rarely be sufficiently complex so as to require helpers. Such code
should almost always be in the models.

Colin

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate