Have you run the migration?
What does db/schema.rb show for the greetings table?
Colin
This shows how important it is to always copy/paste error messages and
code. I think if you look carefully at the error message you may see
that it says that there is no method lanugage rather than language.
Check the code in check_greet
Colin
Sorry for the top post, but I thought it would be worth raising the point that overloading after_initialize on AR::Base was a bad idea (or at least used to be).
Have a quick Google of that to see what comes up.
Top-posted from Android
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/hxqM0KZoDbUJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You should not have to restart the server, but try that (if you have
not already).
Please post the code of the method where the failure is occurring
(copy and paste) and the full error message (also copy and paste).
Colin
I think this may be helpful
http://stackoverflow.com/questions/1778374/validates-presence-of-causes-after-initialize-to-be-called-with-a-weird-self
Colin
Sorry.
Yes, it's just plain old 'initialize' that shouldn't be overloaded, which you're not doing ...
Ignore me :-)
Top-posted from Android
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk...
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/cD7QR0b2juYJ.To post to this group, send email to rubyonra...@googlegroups.com. To unsubscribe from this gr...