It's because yo're providing Product and Admin. Because of Rails
recent conversion to REST, the scaffold generator only generates
controllers based on the model name, in this case you'd have
Product/ProductsController. The reason it's saying the arguments are
wrong is because it thinks Admin is supposed to be a field and you
didn't provide a type.
Also, you can leave the sizes off I think. At least, OSX didn't like
them being on there.
--Jeremy
On Dec 22, 2007 4:32 AM, Chris Willis <
rails-mailing-list@...> wrote:
>
> Hey guys,
> I posted the other day about scaffold not working and i was told that it
> was rails 2.0 doing this. (btw i'm using adgile web development)
> I have read on the internet that you need to put extra stuff like title,
> description......
> So i did this:
>
> C:\ruby\depot>ruby script\generate scaffold Product Admin id:int
> title:varchar(1
> 00) description:text image_url:varchar(200) price:decimal(10,2)
>
> and i got the same error as i got when i didn't put the extra stuff in
> here is the error:
>
> exists app/models/
> exists app/controllers/
> exists app/helpers/
> exists app/views/products
> exists app/views/layouts/
> exists test/functional/
> exists test/unit/
> wrong number of arguments (1 for 2)
>
>
> I no that it says exists but the main point is that i can't scaffold
> now.
> How can i fix this?
> Thanks
> Chris
> --
> Posted via
http://www.ruby-forum.com/.
>
> >
>
--
http://www.jeremymcanally.com/My books:
Ruby in Practice
http://www.manning.com/mcanally/My free Ruby e-book
http://www.humblelittlerubybook.com/My blogs:
http://www.mrneighborly.com/http://www.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@...
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-~----------~----~----~----~------~----~------~--~---