active on for all the links of a particular resource #5

anilmuppalla opened this Issue Mar 4, 2014 · 5 comments


None yet

2 participants


Is there a way to have a link_to active for all the routes in a resource

eg: link_to "users", users_path, active_on: users_path

i want this link to remain active for all the routes:


the gem active_link_to seems to do this
thanks, please close the issue

robotmay commented Mar 8, 2014

Sorry for the delay; I hadn't seen this ticket. link_to_active_state supports this by passing in a regular expression, e.g.:

link_to "users", users_path, active_on: /subjects/

Thanks!, It will be more useful if you covered examples as shown on active_link_to, active_on for children of current path

robotmay commented Mar 8, 2014

Aye I've been meaning to update the docs with a few more examples for a while, I'll get something like that added soon!

Thank you for a great gem! Keep up the great work! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment