:links => [ root_path, another_path ]
Closed this issue · 4 comments
gavinhughes commented
Hey, nice gem! Can you add support for a link that needs highlighting on multiple routes?
Gavin
gavinhughes commented
Hmm... :links => [ ] doesn't make sense. Maybe something more like :highlight => [ root_path ] to specify additional routes that will cause the subject link to receive the highlight class?
gvarela commented
just use :highlights_on it can be a proc
gavinhughes commented
Great! Btw, in readme you show :highlights_on taking a string. It should be an array.
jejacks0n commented
Closing this, because it's from an old version, but will double check that docs are more up to date in the future. Thanks.