decioferreira / bootstrap-generators

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

In Rails 4.1.4 it doesn't work #30

Closed taniarv closed 9 years ago

taniarv commented 9 years ago

I have been using this gem in rails 3.X without a problem, but in Rails 4.1.X it didn't work any more. I have had to add the following code in application.rb :

config.app_generators do |g|
  g.templates.unshift File::expand_path('../templates', __FILE__)
end
decioferreira commented 9 years ago

This issue seems to be related with the use of the spring gem by rails. Are you using it? If yes, try commenting out its line on the Gemfile:

#gem 'spring',        group: :development

If this works, you can always uncomment it back after running the bootstrap:install and scaffold/controller generators.

Can you please check if this works for you?

taniarv commented 9 years ago

Yes, you are right, I uninstalled the spring gem and it did work! ThankS!