Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,263 Programmers. There are 1,902 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

delete scaffold

 
Reply to this topicStart new topic

delete scaffold

arjab
post 22 Apr, 2007 - 02:39 PM
Post #1


New D.I.C Head

*
Joined: 22 Apr, 2007
Posts: 2



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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


spullen
post 2 Jun, 2007 - 03:19 PM
Post #2


D.I.C Regular

Group Icon
Joined: 22 Mar, 2007
Posts: 330

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

spullen
post 9 Jun, 2007 - 09:25 PM
Post #3


D.I.C Regular

Group Icon
Joined: 22 Mar, 2007
Posts: 330

Oh I see what you were saying now. You can remove autogenerated stuff by using ruby script/destroy <type> <name>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 10:23AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month