I figured out my problem. I had already run script generate migration
CreateMyModel. When the scaffold script got to the point where it
creates my migration it broke ....
Another migration is already named create_klasses: db/migrate/
016_create_klasses.rb
...so it never got to creating my controller. Removing the migration
made everything work and reminded me I need not create the migration
first.
Steve
On Sep 24, 2:42 pm, steve odom
<steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I must be missing something simple.
> I''m running the latest edge rails, but was having the same issue
with
> a bit older version of edge rails too.
>
> If I run ...
>
> script/generate scaffold MyModel
>
> ... then it generates everything but the controller. Why isn''t the
> controller also being generated? If i put in the controller name like:
> script/generate scaffold MyModel ThePluralOfMyModel I get wrong number
> of arguments 1 for 2.
>
> What am I missing?
>
> Thanks,
>
> Steve
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---