2 Replies - 8535 Views - Last Post: 09 June 2007 - 09:25 PM Rate Topic: -----

#1 arjab  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 22-April 07

delete scaffold

Posted 22 April 2007 - 02:39 PM

Hi,
I created a scaffolding using the generate script for a table,
called it products, in MySql database. I have now modified the database by
adding new tables and deleting the table product. How do I now delete
the scaffolding against this table in the rails framework? I don't
want to manually go into app/ directory and delete the product model,
view, controller in case there is some coding left behind. Is there a
better way of solving this problem. maybe using the command prompt?

Is This A Good Question/Topic? 0
  • +

Replies To: delete scaffold

#2 spullen  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 10
  • View blog
  • Posts: 356
  • Joined: 22-March 07

Re: delete scaffold

Posted 02 June 2007 - 03:19 PM

so you just changed the databases?

I think you can use rake db:migrate and it should update all of the changes made to the database.
Was This Post Helpful? 0
  • +
  • -

#3 spullen  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 10
  • View blog
  • Posts: 356
  • Joined: 22-March 07

Re: delete scaffold

Posted 09 June 2007 - 09:25 PM

Oh I see what you were saying now. You can remove autogenerated stuff by using ruby script/destroy <type> <name>
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1