If I'm running the command in the console why would it look thru my code?

On Friday, March 3, 2017 at 9:51:49 AM UTC-5, Rob Biedenharn wrote:
>
>
> On 2017-Mar-3, at 09:46 , Joe Guerra <[email protected] <javascript:>> 
> wrote:
>
>
> I'm not sure why I'm getting this... I'm trying to update a product in the 
> ruby console (and tried it within my app).
>
>
> NoMethodError: undefined method `Startdate' for 
> #<Product:0x007f9588a84330>
>
> Did you mean?  startdate
>
>                startdate?
>
>                startdate=
>
>                startdate_was
>
>                startdate_change
>
>                startdate_changed?
>
>                Startdate=
>
> from 
> /Users/joeguerra/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activemodel-4.2.5/lib/active_model/attribute_methods.rb:433:in
>  
> `method_missing'
>
> At one point my table for product had a 'Startdate' column, but I ran a 
> migration to change that column to all lowercase.
>
> any ideas?
>
>
> Note that "Startdate=" remains as a suggested alternative. I'd start by 
> searching your code for the case-sensetive 'Startdate'
>
> -Rob
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/0ba41f44-2020-40f2-9918-8a4f976ec973%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to