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

Join 118,659 Programmers for FREE! Ask your question and get quick answers from experts. There are 860 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



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


My Contributions


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


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


D.I.C Regular

Group Icon
Joined: 22 Mar, 2007
Posts: 330



Dream Kudos: 50
My Contributions


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

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


D.I.C Regular

Group Icon
Joined: 22 Mar, 2007
Posts: 330



Dream Kudos: 50
My Contributions


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

Fast ReplyReply to this topicStart new topic
Time is now: 10/12/08 03:50AM

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