I can't generate migrations - "illegal route the controller must be specified" - where am I going wr

Posted by ro on Stack Overflow See other posts from Stack Overflow or by ro
Published on 2010-03-26T17:21:10Z Indexed on 2010/03/26 17:23 UTC
Read the original article Hit count: 484

Filed under:
|
|
|

Background: i'm using InstantRails 2.0

I'm wanted to add a new column to an existing table using the following syntax:

ruby script/generate migration add_fieldname_to_tablename fieldname:string

So I tried

ruby script/generate migration add_invites_to_user invites:integer ruby script/generate migration add_invites_to_users invites:integer

And to test it further

ruby script/generate migration AddInvites ruby script/generate migration AddInvites invites:integer

All of the above give me

builder.rb:175 in 'build': Illegal route: the :controller must be specified! (ArgumentError)

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about migrations