Disable link to current page

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