techiferous / tabulous

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

Issues with css scaffolding #30

Closed zmasterar closed 11 years ago

zmasterar commented 11 years ago

Hi, i'm new to rails and new to tabulous of course. I had a running rails app, with a functional navbar styled with twitter bootstrap (using twitter-bootstrap-rails). I read some tutorials and decided to change to taulous for a cleaner approach. It's quite easy to setup indeed, and in a few lines i had my navbar running again. The only problem was the css scaffolding.

As suggested in documentation i need to turn it off, but i can't seem to be able to. I understand it is disabled by default, and if i don't write it in the configuration file, there would be no css scaffolding at all, so i deleted every line of the auto generated tabulous.rb file concerning css scaffolding, but still, i got it anyway,

My tabulous.rf file looks like this:

Tabulous.setup do

  tabs do

    ...

  end

  customize do

   renderer :bootstrap_pill

 end

  # The following will insert some CSS straight into your HTML so that you
  # can quickly prototype an app with halfway-decent looking tabs.
  #
  # This scaffolding should be turned off and replaced by your own custom
  # CSS before using tabulous in production.

end

I tried adding a line

use_css_scaffolding = false

but of course it didn't work (although it didn't show up any errors).

So i'm stucked with this css in my html and i can't get rid of it. Where should i look for to actually turn it off?

techiferous commented 11 years ago

Hi, sorry for your troubles! It should go away if use_css_scaffolding does not appear in your tabulous config file at all. If not, there may be a bug in tabulous. I'll investigate this more later today.

techiferous commented 11 years ago

I found the problem. The app/tabs/tabulous.rb file does not reload itself when it's been changed. You need to restart the server. So remove the use_css_scaffolding block altogether and then restart your web server and all should be well.

Let me know if this resolves your problem.

zmasterar commented 11 years ago

It's now working, thank you (although i can swear yesterday i restarted the server like 3 times).

techiferous commented 11 years ago

Great! Glad you got it resolved. Sorry for the tricky setup. And thanks for trying out tabulous!