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 ??? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thank you , Frederick On May 1, 1:58 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.