On Wednesday, October 1, 2014 2:18:42 AM UTC+1, Ruby-Forum.com User wrote:
>
> I do  a create on an Active Record model in a controller and it's doing 
> something strange.  It's primary key (id) is nil, created/updated are 
> nil as well. 
>
>
That sounds like the model wasn't saved. Probably a failed validation or a 
before_save that returned false.

Fred 

-- 
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 rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/af6247a7-37fb-4238-8384-3bd801ba15d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to