weppos/tabs_on_rails — pull request #28 by jcamenisch (2013-07-04 15:04:42+00:00)
Title: Provide for setting html attributes on inner tab element (a or span)

### The goal:

In certain situations, I want to put a class (or perhaps other attributes) on the inner or in my tabs. E.g.:

```html

Completed Orders

Cancellations

```

Currently, the only way to do that is to create a custom builder. Would it be worth providing this capability out of the box? The API proposed in this pull request would allow the above to be generated with the following:

```html
<%= tabs_tag do |tab| %>
<%= tab.completed "Completed", completed_path, inner_options: { class: "icon-ok" }
<%= tab.cancellations "Cancellations", cancellations_path, inner_options: { class: "icon-cancel" }
<% end %>
```

I'm not sure about the name "inner_options", but at least the approach doesn't pollute the pre-existing API. It's just available for the odd people who need it.

I realize I can allow for this with a custom builder. However, that seems like a lot of trouble for just getting basic control of my markup. I thought I would throw this proposal out there to start a conversation.