Will
2010-Jan-30 20:49 UTC
Scaffold in Aptana error - wrong number of arguments(1 for 2) help?
Hi all - I''m new to rails and programming in general. I installed Rails 2.3.5, using mac os x 10.5.8, running into problems using scaffold. I am using Aptana Radrails as my IDE. I was not encountering this problem when using Rails 1.2.6, which is odd because from what I can gather online the entry syntax I am using should only work with Rails 2.x . Any help would be greatly appreciated. I enter the following:>script/generate scaffold product \ title:stringWhich then yields: exists app/models/ exists app/controllers/ exists app/helpers/ create app/views/products exists app/views/layouts/ exists test/functional/ exists test/unit/ create test/unit/helpers/ exists public/stylesheets/ create app/views/products/index.html.erb wrong number of arguments (1 for 2) -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2010-Jan-30 22:19 UTC
Re: Scaffold in Aptana error - wrong number of arguments(1 for 2) help?
On Jan 30, 8:49 pm, Will <wdoan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all - I''m new to rails and programming in general. > I installed Rails 2.3.5, using mac os x 10.5.8, running into problems > using scaffold. I am using Aptana Radrails as my IDE. I was not > encountering this problem when using Rails 1.2.6, which is odd because > from what I can gather online the entry syntax I am using should only > work with Rails 2.x . Any help would be greatly appreciated. > > I enter the following: > > >script/generate scaffold product \ title:string >You don''t want that backslash there (I''m guessing that you copied that from a tutorial, where a \ at the end of the line usually indicates that the command should be entered on a single line) Fred> Which then yields: > > exists app/models/ > exists app/controllers/ > exists app/helpers/ > create app/views/products > exists app/views/layouts/ > exists test/functional/ > exists test/unit/ > create test/unit/helpers/ > exists public/stylesheets/ > create app/views/products/index.html.erb > wrong number of arguments (1 for 2)-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.