I want a scaffold to manager both products and users. To get the products scaffold I used script/generate scaffold Product Admin if I use, script/generate scaffold User Admin will it overwrite my product admin controller? Would I be better off doing script/generate scaffold User User_Admin or something? -- Posted via http://www.ruby-forum.com/.
Hello Vince,> I want a scaffold to manager both products and users. To get the > products scaffold I used > > script/generate scaffold Product Admin > > if I use, > > script/generate scaffold User Admin > > will it overwrite my product admin controller? Would I be better off > doing > > script/generate scaffold User User_Admin or something?You can create a ProductController and a UserController in an admin module : script/generate scaffold Product admin/product script/generate scaffold User admin/user -- Jean-Fran?ois. -- ? la renverse.
Jean-Fran?ois wrote:> You can create a ProductController and a UserController > in an admin module : > > script/generate scaffold Product admin/product > script/generate scaffold User admin/user > > -- Jean-Fran?ois.Thanks for the quick reply. Since I have already done a script/generate scaffold Product Admin should I undo it (script/destroy) or should I just execute the second command (script/generate scaffold User admin/user). By the way, is this case sensitive? -- Posted via http://www.ruby-forum.com/.
Shai Shefer
2006-May-24 19:34 UTC
[Rails] Re: quick q on script/generate scaffold - tacking on another question...
> > You can create a ProductController and a UserController > > in an admin module : > > > > script/generate scaffold Product admin/product > > script/generate scaffold User admin/userI''ve done this same process but ran into an error when trying to view the page... localhost/admin/product and localhost/admin/user return errors and an empty website. I also have an admin controller setup to help navigate the site and act as the main page... The question is, I am not sure if I need the admin controller. Im still fairly new to rails and not sure if the directory and file hierarchy requires me to have one.