Displaying 1 result from an estimated 1 matches for "calculate_megabytes_used".
2006 Apr 03
3
Read Only Error Since 1.1?
...hen trying to save a specific record.
I read up on ActiveRecord::Base.readonly? but I don''t think the condition
there (objects pulled in from a certain JOIN type) applies.
Here''s my code that is throwing the exception:
@company = session[:company]
@company.bytes_used = @company.calculate_megabytes_used
@company.save
session[:company] = @company
This was working under 1.0 and I checked SVN and I don''t see any changes to
this code in my repository since then...
What could be causing this? Any ideas?
Thanks,
Hunter