techiferous / tabulous

Easy tabbed navigation for Rails
Other
322 stars 35 forks source link

Possible documentation error in Multiple Tabset example #33

Closed tovodeverett closed 11 years ago

tovodeverett commented 11 years ago

This might be a HAML vs. ERB issue (I don't have a lot of ERB experience), but I had trouble using the sample layout snippet in https://github.com/techiferous/tabulous/blob/master/REFERENCE.md#multiple-tabsets. I got all sorts of errors that the huge block of HTML returned by tabs(:fun) was not a valid partial name.

I suspect that the calls to render are inappropriate and that the sample layout snippet should instead read:

<%= tabs(:fun) %>
<%= subtabs(:fun) %>
<p>some markup</p>
<%= tabs(:colors) %>
<%= subtabs(:colors) %>

But I could be totally off base, so I apologize if I'm just confused!

techiferous commented 11 years ago

Yes, thank you! That is a genuine documentation error and you diagnosed it well. I pushed a corrected version of REFERENCE.md to master.