decioferreira / bootstrap-generators

Bootstrap-generators provides Twitter Bootstrap generators for Rails
MIT License
353 stars 77 forks source link

rails generate bootstrap:install --template-engine=haml always references turbolinks #23

Closed spundun closed 10 years ago

spundun commented 10 years ago

I wanted to disable turbolinks so I took it out from the Gemfile, I also took it out from the application.html.erb file that is generated when you run rails new blog but still when I ran rails generate bootstrap:install --template-engine=haml I got data-turbolinks-track references in the application.html.haml file.

I hope there is a way to take these references out in the generator.

decioferreira commented 10 years ago

Just pushed a new version of the gem 3.1.1.3 with a new option --skip-turbolinks to remove turbolinks references from the generated layout. Hope this helps.

Also, does anyone know how to check if turbolinks is installed when running the generator? And how to add a test to check if it works correctly? That would make the generator only create the turbolinks references if the gem was available.