Hi Rob,

Partials sounds the go to me !

cheers Dave


On Dec 20, 3:06 am, Rob Pa <[email protected]> wrote:
> Hi,
>
> I am using Ruby on Rails to create a new site.
>
> On every page, I want to have a log in box. I also want to display the
> latest 5 news items on all the pages as well.
>
> How could I go around this? Is it possible to have @news =
> News.find(:all, :limit => 5 ) in the application handler, and then call
> the @news on all pages?
>
> Would I also be able to handle the log in code in the main application
> controller aswell?
>
> Thanks a lot,
> Rob
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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