amitmahajan-pCGr9Sw2R8Y@public.gmane.org
2008-Sep-03 13:23 UTC
Error using scaffolding in Rails 2.0
I need to use scaffolding to generate my model “Publisher” and controller “admin/publisher” . I am running following ruby command and getting error> script/generate scaffold Publisher ''admin/publisher''error exists app/models/ exists app/controllers/ exists app/helpers/ create app/views/publishers exists app/views/layouts/ exists test/functional/ exists test/unit/ exists public/stylesheets/ create app/views/publishers/index.html.erb wrong number of arguments (1 for 2) I know that scaffolding has been removed from Rails 2.0, however can’t able to find any document for alternative solution. Thanks Amit --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Amit, Scaffolding changed substantially with 2.0. Google ''rails 2.0 scaffolding''. Also, you might want to work through this tutorial: http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full -tutorial amitmahajan-pCGr9Sw2R8Y@public.gmane.org wrote:> I need to use scaffolding to generate my model “Publisher” and > controller “admin/publisher” . I am running following ruby command > and getting error > > script/generate scaffold Publisher ''admin/publisher''HTH, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Bill Walton wrote:> Also, you might want to work through this tutorial: >http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full -tutorial Forgot one... http://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-by-step. html Best regards, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I need to use scaffolding to generate my model “Publisher” and controller “admin/publisher” . I am running following ruby command and getting error> script/generate scaffold Publisher ''admin/publisher''error exists app/models/ exists app/controllers/ exists app/helpers/ create app/views/publishers exists app/views/layouts/ exists test/functional/ exists test/unit/ exists public/stylesheets/ create app/views/publishers/index.html.erb wrong number of arguments (1 for 2) I know that scaffolding has been removed from Rails 2.0, however can’t able to fins any document for alternative solution. Thanks Amit -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---