twitter/bootstrap — Issue #2293: support for Rails link_to_unless, link_to_unless_current, etc
Author: shwoodard
Created: 2012-02-27 16:39:55+00:00
State: open

It would be nice if `.nav-pills` and `.drop-menu` (items) appeared correctly without a link. In other words if more styling could be applied to the `li`s and less to that `a`s then one could use `link_to_unless` and `link_to_unless_current`, etc and still have pills and menu items show correctly.

Alternatively, it could be required that you wrap the text that would be a menu item or a pill in a span and possibly add the class `disabled` or `inactive` to satisfy this styling requirement. Example,

```erb
<%= link_to_unless_current("Resume", document_path('resume'), :id => 'view_resume') do %>
Resume
<% end %>
```

Something like that.

Thoughts?

Cheers,
Sam