scaffolding chapter 3

5 views
Skip to first unread message

Matthew

unread,
Dec 16, 2009, 1:33:38 PM12/16/09
to Beginning Ruby on Rails E-Commerce
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'

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

Jarkko Laine

unread,
Dec 29, 2009, 12:04:18 PM12/29/09
to railsec...@googlegroups.com

On 16.12.2009, at 20.33, Matthew wrote:

> 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

Reply all
Reply to author
Forward
0 new messages