jejacks0n / navigasmic

Navigasmic: Semantic navigation for Rails using simple view level or configuration definitions.
322 stars 29 forks source link

Add custom attribute to link #50

Closed jmuheim closed 9 years ago

jmuheim commented 9 years ago

I want to add a custom accesskey="0" attribute to one of my menu items, but I don't seem to be able to find out how to do this. I played around with link_options without success, though this really looks like it has to be the right place to do this, but it places a link_options="{:accesskey=>0}" on the li element, not on the a.

Any help is highly appreciated.

jmuheim commented 9 years ago

Ah I found it: link_html: {accesskey: 0}. I think you should point to this in the README.