Scaffold generation works differently in rails 2 (which you have
installed) and rails < 2.0 (which the tutorial is assuming you are
using).
My suggestion would be to either install the version of rails required
by the tutorial or get a new tutorial.
On Apr 27, 9:24 am, "Michael Phoenix"
<michaelandrewphoe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m going through the rolling with ruby on rails tutorial and I
have hit a
> snag. When I get to the part where I enter the command line given by the
> tutorial in order to generate scaffold, I get the following:
>
> C:\ruby\rails_apps\cookbook2>ruby script\generate scaffold recipe recipe
> exists app/models/
> exists app/controllers/
> exists app/helpers/
> create app/views/recipes
> exists app/views/layouts/
> exists test/functional/
> exists test/unit/
> create app/views/recipes/index.html.erb
> wrong number of arguments (1 for 2)
>
> This doesn''t make sense, I gave it all the arguments the tutorial
told me to
> give and i have done all the previous steps. Some help here would be
> appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---