decioferreira / bootstrap-generators

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

Use force to update application layout #9

Closed gaurish closed 11 years ago

gaurish commented 11 years ago

Instead of this:

$ rails generate bootstrap:install
      create  lib/templates/erb
      create  lib/templates/erb/controller/view.html.erb
      create  lib/templates/erb/scaffold/edit.html.erb
      create  lib/templates/erb/scaffold/index.html.erb
      create  lib/templates/erb/scaffold/new.html.erb
      create  lib/templates/erb/scaffold/show.html.erb
      create  lib/templates/erb/scaffold/_form.html.erb
       exist  config
      create  config/initializers/simple_form.rb
      create  config/locales/simple_form.en.yml
    conflict  app/views/layouts/application.html.erb
Overwrite /home/gaurish/Dropbox/code/practice/splitcast/app/views/layouts/application.html.erb? (enter "h" for help) [Ynaqdh] y
       force  app/views/layouts/application.html.erb
      create  app/assets/stylesheets/bootstrap-variables.css.scss
      create  app/assets/stylesheets/bootstrap-generators.css.scss
      insert  app/assets/javascripts/application.js

its better to add a -f switch, so the user is not promoted about overwriting. Because to use bootstrap, they do need to overwrite application.html.erb. so -f makes sense

Btw, Thanks for creating this gem. its quite handy & rad! :+1:

decioferreira commented 11 years ago

Thanks for the feedback @gaurish.