On 29 Mar 2011, at 19:53, Alexey Muranov <lists@ruby-forum.com> wrote:
> I do not have any validations, the model is basically empty (only
> attributes and associations).
>
> save! returns true, but doesn't save anything, but saves later, after
> changing more attributes ...
>
> So, i assume this could be because of changing the id.
> But what the method id= is for then?
I've only ever used it when I wanted a new record to have a specific id.
Fred
> I may post later (tomorrow?) a minimal example.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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@googlegroups.com.
> 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.
>
--
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@googlegroups.com.
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.
No comments:
Post a Comment