Hi,
When writing a .rhtml file how can i detect which url is being
rendered and disable the links? Even more, I may want to change some
other css classes for other elements based on which url is the current
one.
Thanks,
Peter
Hi,
When writing a .rhtml file how can i detect which url is being
rendered and disable the links? Even more, I may want to change some
other css classes for other elements based on which url is the current
one.
Thanks,
Peter
Peter M. wrote:
Hi,
When writing a .rhtml file how can i detect which url is being
rendered and disable the links? Even more, I may want to change some
other css classes for other elements based on which url is the current
one.
Check out link_to_unless_current and request.request_uri.
b
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs