Sidney Burks
2006-Aug-26 22:39 UTC
[Masterview-users] Question about templates and model changes
Hi, So I''m trying to check out MasterView, and I ended up using a migration in rails to add a column to my database model. However, when I reload the pages on the web server, it doesn''t include the new DB fields on the page. I tried, doing rake mv:rebuild_all, restartng the server, and reloading the pages again, but I still don''t see the new fields on the gnerated page. Any ideas, or is this normal? Thanks, -Sidney -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20060827/71628c41/attachment.html
Jeff Barczewski
2006-Aug-27 12:13 UTC
[Masterview-users] Question about templates and model changes
Yes, this is normal. MasterView''s generator works just like the rails scaffold generator in that it generates code only when you run it so then you can modify it for production (move things, rename, take things out). If it were always generating then you could not do any of those things. The idea is that it gets you up and going quickly and then you can take it from there. If you want to get the new fields that were migrated in then you simply need to rerun the masterview generator and it will prompt you as to whether you want to override the existing files. Say yes and it will pick up your new fields. Of course in doing this you could lose some of your customizations if you made any. Blessings, Jeff On 8/26/06, Sidney Burks <sid137 at gmail.com> wrote:> Hi, > > > So I''m trying to check out MasterView, and I ended up using a migration in > rails to add a column to my database model. However, when I reload the > pages on the web server, it doesn''t include the new DB fields on the page. > I tried, doing rake mv:rebuild_all, restartng the server, and reloading the > pages again, but I still don''t see the new fields on the gnerated page. > > Any ideas, or is this normal? > > Thanks, > -Sidney > > _______________________________________________ > Masterview-users mailing list > Masterview-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/masterview-users > >