On Aug 29, 2011, at 2:20 PM, Alexey Muranov wrote:

Can anybody please explain to me, what kind of methods, except
before_filters, are appropriate for ApplicationController, and why not
to put them into some helper?

I have read an interesting blog post about helpers
http://railspikes.com/2008/8/22/how-to-fix-your-rails-helpers
where it is explained that the ApplicationHelper is not a good place to
keep the code, but what about ApplicationController?

Alexey.


It's not a hard-and-fast rule, but I've always heard that anything that generates HTML belongs in a helper, and anything that marshalls model instances belongs in a controller.

Walter


--
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.

Reply via email to