techiferous / tabulous

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

Subtabs not showing up #13

Closed dickyblue closed 12 years ago

dickyblue commented 12 years ago

Hi,

Do subtabs work with rails 3.2 with ruby 1.9.3? It's not showing up for some reason. I am also using bootstrap and it shows the down arrow next to the main tab, but I don't see any subtabs.

Thanks.

techiferous commented 12 years ago

Hi,

I expect this to work. Can you share the HTML that tabulous generates? Also, can you share your tabulous config settings?

On Feb 24, 2012, at 12:59 AM, dickyblue wrote:

Hi,

Do subtabs work with rails 3.2 with ruby 1.9.3? It's not showing up for some reason. I am also using bootstrap and it shows the down arrow next to the main tab, but I don't see any subtabs.

Thanks.


Reply to this email directly or view it on GitHub: https://github.com/techiferous/tabulous/issues/13

dickyblue commented 12 years ago

Sure. It looks like the HTML is not working properly. The Categories tab actually created a b class tag called "caret" . This b tag only shows up for any tab with subtabs.

Categories

techiferous commented 12 years ago

Try adding this:

config.tabs_ul_class = nav nav-pills # or whatever Bootstrap class you want

On Feb 24, 2012, at 11:04 AM, dickyblue wrote:

Sure. The HTML looks correct but it isn't showing up for some reason.

Categories

dickyblue commented 12 years ago

No, that didn't do it unfort. I get the following error when I add the line.

undefined local variable or method `nav' for main:Object

I also tried installing and uninstalling the gem. Didn't work either.

techiferous commented 12 years ago

Would you mind including the entire stack trace? Or at least the parts of the stack trace around this error for some more context?

On Feb 24, 2012, at 2:08 PM, dickyblue wrote:

No, that didn't do it unfort. I get the following error when I add the line.

undefined local variable or method `nav' for main:Object

I also tried installing and uninstalling the gem. Didn't work either.


Reply to this email directly or view it on GitHub: https://github.com/techiferous/tabulous/issues/13#issuecomment-4163028

rwjenkins3 commented 12 years ago

I am having the same issues with subtabs not showing up if using config.bootstrap_style_subtabs = true. If using "false" the subtabs show up at the end of the main tabs. The html shows them wrapped in a div with id="subtabs".

Any idea what I'm doing wrong?

techiferous commented 12 years ago

Hi rwjenkins3,

Sorry for the late reply. I was not able to reproduce your error. I'm not sure what is causing you problems. If you think that tabulous is in error, it would be appreciated if you could track down the bug and submit a patch. If you think you are doing something wrong, start by troubleshooting the HTML that's generated by tabulous. If the expected HTML is present, then the problem is with the CSS or JavaScript outside of tabulous.

mike-park commented 12 years ago

I've had the same problem. My solution was force-reloading the page with in the browser. Turns out my .js files were a mixture of development versions (individual .js files) and a compiled-compressed single application.js.

Take away note: clear your browser cache, maybe the problem will magically clear up.

dickyblue commented 12 years ago

I started a new project and am experiencing the same issue. I can't load the subtabs using bootstrap.

dickyblue commented 12 years ago

This is what the html looks like. The Story was supposed to have subtabs "how we met", "then and now", and "she said yes". but it's not working.

here is the gist

https://gist.github.com/2369314

techiferous commented 12 years ago

Hi dickyblue,

Sorry you're having problems. Unfortunately, I'm quite busy at the moment and also I'm not in a good position to troubleshoot this. Since this is happening on your machine, you are in the best position to troubleshoot this. You can help the tabulous project by pinpointing the issue. I would be grateful if you could send a detailed explanation of the bug that is in the design or code of tabulous. Once pinpointed, I'll be glad to code up a solution.