Specifying Additional Attributes On Anchor Tag Using Link_to In Rails
Let us say I want an output html like this in rails: Action How can I specify the attribues (role and tabIndex
Solution 1:
Check out the Rails docs for link_to
link_to 'Action', '#', role: 'menuitem', tabindex: -1
should do the trick
Post a Comment for "Specifying Additional Attributes On Anchor Tag Using Link_to In Rails"