search for: readonlyrecord

Displaying 6 results from an estimated 6 matches for "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 g...
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 tho...
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...
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...
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 Discus...
2009 Mar 05
6
About before_* callbacks
...before_destroy :log_illegal_operations before_update :log_illegal_operations private def log_illegal_operations Event.create({:key => "illegal operation", :value => "Someone wants to update/destroy record(s) in Event model. Blocked!"}) raise ActiveRecord::ReadOnlyRecord, "This is a readonly model, do not destroy any record!" # return false end end [/code] But, it won''t create any events but the auto_increment will be increment. Do anybody knows how to solve it? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received th...