2
I have a model called Person, when I open the Rails Console and try to assign it to any variable, I get this:
user.localapp (test) $ rails c
Loading development environment (Rails 4.2.0) (Ruby 2.2.0)
localapp> a = person.first
NameError: undefined local variable or method `person' for main:Object
from (irb):1
Does anyone know why?
Vlw gave it right!
– Henrique Max