Hi, I''m new to Rails and I''m trying to get going with Rails 2.0. How can I regenerate the views after I make a change to my db schema and run db:migrate? Everything works for the sql tables but it seems I have to manually update the views files. Any idea? Thanks Gilles --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
If you''re talking about the scaffold, you can use the same command you used the first time. it will ask you what files you want to overwrite. On Mar 5, 3:14 pm, gilles <gkb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m new to Rails and I''m trying to get going with Rails 2.0. How can I > regenerate the views after I make a change to my db schema and run > db:migrate? Everything works for the sql tables but it seems I have to > manually update the views files. Any idea? > > Thanks > Gilles--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
This is true, but note that you have to list off all the fields & datatypes when you issue the generate scaffold command, or else you''ll get a bunch of mostly empty templates. AFAICT, you are intended to manually edit the view files. HTH, -Roy On Mar 5, 1:50 pm, Josh <jjkie...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> If you''re talking about the scaffold, you can use the same command you > used the first time. it will ask you what files you want to overwrite. > > On Mar 5, 3:14 pm, gilles <gkb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > I''m new to Rails and I''m trying to get going with Rails 2.0. How can I > > regenerate the views after I make a change to my db schema and run > > db:migrate? Everything works for the sql tables but it seems I have to > > manually update the views files. Any idea? > > > Thanks > > Gilles--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks! On Mar 5, 2:07 pm, Roy Pardee <rpar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This is true, but note that you have to list off all the fields & > datatypes when you issue the generate scaffold command, or else you''ll > get a bunch of mostly empty templates. > > AFAICT, you are intended to manually edit the view files. > > HTH, > > -Roy > > On Mar 5, 1:50 pm, Josh <jjkie...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > If you''re talking about the scaffold, you can use the same command you > > used the first time. it will ask you what files you want to overwrite. > > > On Mar 5, 3:14 pm, gilles <gkb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi, > > > > I''m new to Rails and I''m trying to get going with Rails 2.0. How can I > > > regenerate the views after I make a change to my db schema and run > > > db:migrate? Everything works for the sql tables but it seems I have to > > > manually update the views files. Any idea? > > > > Thanks > > > Gilles--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---