link_to_unless_current for subURLs in Rails
Posted
by Vitaly
on Stack Overflow
See other posts from Stack Overflow
or by Vitaly
Published on 2010-05-27T14:26:43Z
Indexed on
2010/05/27
14:41 UTC
Read the original article
Hit count: 154
Hey,
I'm looking for a way to use something similar to link_to_unless_current
but for sub URLs, so for instance for both these URLs:
/entity_name/
/entity_name/123
it will not result as a link. How can I achieve that in Rails?
© Stack Overflow or respective owner