On Dec 18, 2010, at 5:53 PM, Marnen Laibow-Koser wrote:
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.
Hmmm. That seems like a lot of duplication, since the only thing I
want to change is the name of the logo file.
Thanks,
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.