On Apr 7, 3:11 pm, ct9a <[email protected]> wrote:

> I have written a script (which I will paste below).
> I seem to always get the error below which relates to
> ActiveRecord::ReadOnlyRecord when I try to save/update the object.
>
> "projects/myApp/vendor/rails/activerecord/lib/active_record/base.rb:
> 2867:in `create_or_update': ActiveRecord::ReadOnlyRecord
> (ActiveRecord::ReadOnlyRecord)".

That happens if you do a find with a :joins option (unless you
override it by passing :readonly => false)

Fred

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to