search for: readonlyrecords

Displaying 6 results from an estimated 6 matches for "readonlyrecords".

Did you mean: readonlyrecord
2010 Mar 08
2
ActiveRecord::ReadOnlyRecord on attributes_update
Hi, I have a ActiveRecord::ReadOnlyRecord error when i update child attributes whereas when i create a new one it works fine. Someone had this error? Best, greg -- 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
2007 Jun 30
1
HABTM ReadOnlyRecord
Hi. I get this error: ** ActiveRecord::ReadOnlyRecord ** When i try to update a table called characters_learning_abls that is a habtm relation between characters and learning_abls. The characters_learning_abls table looks like this: ** character_id int(11) unsigned learning_abls_id int(11) unsigned amount double ** Why cant i update this table though the **
2006 Dec 29
2
update_attributes fails: ReadOnlyRecord
I''m trying to update a record, but it just stops with "ActiveRecord::ReadOnlyRecord". I don''t understand why, because I never wanted my model to be read only. Relevant code: Controller: def edit @project = find_project if request.post? @project.update_attributes(params[:project]) if @project.save flash[:message] = _(''Project was
2006 Apr 03
3
Read Only Error Since 1.1?
Since I upgraded to 1.1, I am getting ''ActiveRecord::ReadOnlyRecord'' exceptions when 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 =
2012 Oct 31
1
[Announce] CTDB release 2.0 is ready for download
This is long overdue CTDB release. There have been numerous code enhancements and bug fixes since the last release of CTDB. Highlights ======= * Support for readonly records (http://ctdb.samba.org/doc/readonlyrecords.txt) * Locking API to detect deadlocks between ctdb and samba * Fetch-lock optimization to rate-limit concurrent requests for same record * Support for policy routing * Modified IP allocation algorithm * Improved database vacuuming * New test infrastructure Reporting bugs & Development Discuss...
2009 Mar 05
6
About before_* callbacks
Hi I have an problem about before_* callbacks. I have a model named: Event And I don''t want anyone to destroy or update any records in Event model. So: [code] class ActiveRecord::Base before_destroy :log_illegal_operations before_update :log_illegal_operations private def log_illegal_operations Event.create({:key => "illegal operation", :value =>