You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem in the API because there are legitimate cases where we want to add attributes to the <li> element, other cases where we want to add attributes to the enclosing elements. It should be possible to specify multiple html_options for each element we want to ad options for.
With the following haml view:
ui_nav do |nav| - nav.link 'text', {url: '/url'}, {'data-method': 'post'}
The
data-method
attribute is not applied to the<a>
element.Quick demonstration in rails console:
The text was updated successfully, but these errors were encountered: