crazy.bisht-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Feb-11 13:01 UTC
Scaffolding again after new columns in table
Hi, I am a newbie to RoR, and wanted to know how-to go about adding a new column to a table. Once if I add the table, then is it necessary to scaffold again, and how to be sure that I do not regenerate my controllers, views and model defined earlier. I am just attempting to add a new column to the table in order to store additional data about an item, and show that additional data along with the normal view (of the item earlier) Can somebody please help me on this. I know this is a very trivial thing, but I am afraid if I regenerate my model, view, controller again. Thanks and regards --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
scaffolding is no mandatory step if you add a new column, you can as easy add the entry for it in the existing form most people i know never use scaffolding anyway, since with a bit of experience you can write those few lines fast enough -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---