Walter Davis wrote in post #969331: > I have a very simple request from my client that there be a larger > logo on the home page than every other page in the site. I did > something fairly kludgy to make it work quickly -- put a bare variable > in the application controller: > > at_root = false > > and then in my home method put > > at_root = true > > and test for that in the view. But this seems like three times too > much work to me, plus it puts view-related stuff in the controller. Is > there a simple test I can perform in the view, so I can know if the > current request == :root or not?
You could use current_page? ; however, in your case, I'd probably simply declare a different layout for the home page. > > Google has been unhelpful, probably because the words in my question > are too general. > > Walter Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] Sent from my iPhone -- Posted via http://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.

