$ script/generate scaffold Publisher 'admin/publisher'
like it says in the book, I just get:
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 think this is because it is trying to build this into the 'admin/
publisher' directory. Does anyone know a fix for this problem?
CHeers
> Hi,
> Can anyone help me i'm trying to run a scaffold command to build the
> publisher UI but when i run the command:
>
> $ script/generate scaffold Publisher 'admin/publisher'
Try
script/generate scaffold 'admin/publisher'
It seems to work for me in 2.3.5.
Cheers,
//jarkko
>
> like it says in the book, I just get:
>
> 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 think this is because it is trying to build this into the 'admin/
> publisher' directory. Does anyone know a fix for this problem?
>
> CHeers
>
> --
>
> You received this message because you are subscribed to the Google Groups "Beginning Ruby on Rails E-Commerce" group.
> To post to this group, send email to railsec...@googlegroups.com.
> To unsubscribe from this group, send email to railsecommerc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/railsecommerce?hl=en.
>
>
--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi