Re: Why this NameError ???

Frederick Cheung
Sun, 01 May 2011 20:58:33 -0000

On May 1, 8:56 pm, Bruce Wilson
<bwilson...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
wrote:
> Why would this:
>
> $ rails generate migration add_user_id_to_articles user_id:integer
>
> return this:
>
> NameError: undefined local variable or method ''integer''
for
> main:Object   ???

Did you type this at the rails console rather than at the command
line?

Fred

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.