[Rails] Where to put code for layouts?

Marten Veldthuis marten at standardbehaviour.com
Wed Jan 5 21:28:22 GMT 2005


Lars Hoss wrote:
> Personally I find this a little bit confusing because controllers use 
> the "model :" approach whereas helpers must use the old-style "require" 
> approach. If you know what to do it's ok. Newbies on the other hand 
> might be confused a little bit first (when to use what)?

You'll want to do the

   model :category

thing within controller/application.rb, rather than from the helper 
itself in this case.


Kind regards,

-- 
Marten Veldthuis


More information about the Rails mailing list