Hi all I am trying the depot application from Agile Web Development With rails, and instead of running: script/generate scaffold product admin In 2.0 I run: script/generate model Product title:string description:string But where is the list.rhtml file now? I do not see it in the Views folder Thanks Jose -- 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 -~----------~----~----~----~------~----~------~--~---
Correction in 2.0 I run script/generate scaffold Product title:string description:string -- 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 -~----------~----~----~----~------~----~------~--~---
ixquic696969-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jul-16 10:03 UTC
Re: rails 2.0 script/generate scaffold product admin
> But where is the list.rhtml file now? I do not see it in the Views > folderOld Rails scaffolding had two actions for viewing the collection, list and index. By default, index redirected to list, so they meant basically the same. (I think it was because DHH felt that "list" was a more descriptive name for what the action does, but in URLs it had always been index.html, so web servers will give you index.html if you don''t specify a file name. Or it was about the distinction between "index" as a welcome page for the first visit, and the actual "list"ing of the collection.) The new resource scaffolding got rid of list. So what used to be list.rhtml is now index.rhtml, or rather index.html.erb. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ixquic696969-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jul-16 10:11 UTC
Re: rails 2.0 script/generate scaffold product admin
Oh, now I see why you''re confused. The scaffold generator is a completely new beast now. "generate scaffold" now does the same as pre-2.0 "generate scaffold_resource", and the old scaffold generator was dumped. http://blog.buildingwebapps.com/2008/2/24/the-pain-of-redefining-scaffold --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---