Phillip wrote in post #969461:
> Create a method in application_helper.rb to compare the root path with
> request.env['PATH_INFO'], returning the url of the appropriate logo
> (pass the root path and both logos in with the method call in your
> layout).
>
>         logo_helper("/your root path/", "/images/big_logo.png", "/
> images/small_logo.png")

That really is the hard way of doing it.  Just use current_page? .

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.

Reply via email to