rivsc / Beautiful-Scaffold

Rails generator for a complete and beautiful scaffold.
http://beautiful-scaffold.rivsc.ovh/
MIT License
74 stars 22 forks source link

Destroy scaffold deletes the Controller directory #6

Closed bkd closed 11 years ago

bkd commented 11 years ago

... see below

executed from rails destroy beautiful_scaffold job

  subtract  app/models/job.rb
  subtract  config/application.rb
  remove  app/modules/beautiful_scaffold_module.rb
  remove  app/models/pdf_report.rb
  remove  app/controllers/beautiful_controller.rb

  remove  app/controllers
  remove  app/controllers/jobs_controller.rb

  remove  app/helpers/beautiful_helper.rb
  remove  app/helpers
  remove  app/helpers/jobs_helper.rb
  remove  app/views
  remove  app/views/jobs
  remove  app/views/jobs/index.html.erb
  remove  app/views/jobs/edit.html.erb
  remove  app/views/jobs/show.html.erb
  remove  app/views/jobs/new.html.erb
  remove  app/views/jobs/_form.html.erb
rivsc commented 11 years ago

I did not know it was possible to use "rails destroy beautiful_scaffold", this is automatic. I'll take a look.

rivsc commented 11 years ago

Fixed (v 0.3.2) but app/controllers/beautiful_controller.rb is always removed.