So in the middle of delivering a website to somebody I naively upgraded to rails 2.0, and WTF? Why did the scaffolding change so dramatically without leaving the old commands around? (insert Zed Shaw rant here) So I figured out how to run the scaffold command and the code it creates is TOTALLY different than anything I know. WHY do I need webservices built into my stupid little website again, could somebody please remind me? Anyway, end of rant (but still irritated). Here comes a real question: 1. Before it was easy to remove a layout for a specific controller and use the default application.rhtml layout. In my case the application.rhtml has all my navigational tabs and stuff like that. Now when I remove the layout created by the scaffold command I get an error. Could somebody please tell me how to remove the layout file created my this fabulous 2.0 scaffold command? -- 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 -~----------~----~----~----~------~----~------~--~---
Rails 2.0 is a major version upgrade. You should expect breakages and deprecations. Can you tell us the exact error you get? Can''t help you much without that. :) --Jeremy On Tue, May 20, 2008 at 10:23 PM, Steven Line <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > So in the middle of delivering a website to somebody I naively upgraded > to rails 2.0, and WTF? Why did the scaffolding change so dramatically > without leaving the old commands around? (insert Zed Shaw rant here) So > I figured out how to run the scaffold command and the code it creates is > TOTALLY different than anything I know. WHY do I need webservices built > into my stupid little website again, could somebody please remind me? > > Anyway, end of rant (but still irritated). > > Here comes a real question: > > 1. Before it was easy to remove a layout for a specific controller and > use the default application.rhtml layout. In my case the > application.rhtml has all my navigational tabs and stuff like that. Now > when I remove the layout created by the scaffold command I get an error. > Could somebody please tell me how to remove the layout file created my > this fabulous 2.0 scaffold command? > -- > Posted via http://www.ruby-forum.com/. > > > >-- http://jeremymcanally.com/ http://entp.com Read my books: Ruby in Practice (http://manning.com/mcanally/) My free Ruby e-book (http://humblelittlerubybook.com/) Or, my blogs: http://mrneighborly.com http://rubyinpractice.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 -~----------~----~----~----~------~----~------~--~---
Guess what? I figured it out. Must have been the venting. Thanks for the help offer. -- 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 -~----------~----~----~----~------~----~------~--~---
Steven Line wrote:> > Guess what? I figured it out. Must have been the venting. > > Thanks for the help offer. > > >Hi Steven Could you perhaps post the solution here? That way, everybody else gets to benefit from your new-found knowledge ;) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Rory McKinley wrote:> Could you perhaps post the solution here? That way, everybody else gets > to benefit from your new-found knowledge ;)Ha ha, are you trying to embarass me? I don''t know the solution. The next time I removed the layout file it just started working! The only thing I could think of is, initially when I got the error, I had only renamed the layout file to something I didn''t think would be picked up. Maybe what I renamed it to still got picked up, but not picked up correctly. Maybe when it worked it was because I renamed it to something different than the first time I renamed it? Then once it started working I removed the layout file. I know this isn''t much help, but it''s the best I can do. -- 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 -~----------~----~----~----~------~----~------~--~---