similar to: HABTM ReadOnlyRecord

Displaying 13 results from an estimated 13 matches similar to: "HABTM ReadOnlyRecord"

2010 Aug 30
4
different interface to by (tapply)?
dear R experts: has someone written a function that returns the results of by() as a data frame? ??of course, this can work only if the output of the function that is an argument to by() is a numerical vector. presumably, what is now names(byobject) would become a column in the data frame, and the by object's list elements would become columns. it's a little bit like flattening the by()
2011 Mar 25
1
[LLVMdev] Named metadata to represent language specific logic
Hi all, I was wondering if we could use named metadata to store some of C++ logic without changing the IR. This is primarily only for front-end buiding and the resulting IR (with or without metadata) should be the same as it is today (or better). I say this because of the number of global variables front-ends need to keep because LLVM IR cannot represent all the information of types, vatriables,
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
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
2010 Jan 06
4
serialized attribute converting to string on reload
Hello, Anybody help me out? I done googled it good and didn''t find anything (which should mean that I''ve done something wrong). Not much code to talk about here, quite simply I have an attribute that is serialzied and when I update it, irb shows the object and my methods run on it as it were indeed so. Though when I reload it changes the data to a string. Not yaml, just one
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 =
2008 Jul 13
2
Problem with ActiveRecord::AssociationTypeMismatch
Hi all ! I''ve written a Character model, each character has many Attributes. My schema.rb looks like this: create_table "characters", :force => true do |t| t.string "first_name" t.string "last_name" t.integer "user_id" t.datetime "created_at" t.datetime "updated_at" end create_table "attributes",
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 =>
2007 Jan 29
5
Getting the reason why this fails ??
Hi there. Have this code, and i need to find put why it fails. >>Controller ------------ def update @user = User.find(@params[:id]) if @user.update_attributes(@params[:user]) flash[:notice] = ''The user was successfully updated.'' redirect_to :action => ''show'', :id => @user else flash[:notice] = "Error: The user
2006 Oct 27
1
link_to
Hi there. Is there a way i can have my link_to refer outsite the current controler ? I have a path /refrences/ wich lists the refrences, and i want a link_to in this template, to refer to the path /companies/show/company.id is this possible ? I have tried using: ink_to ''link'', :action => ''/companies/show'', :id => company.id but with no luck, is
2006 Mar 16
0
The panel of the gusto.com
I am interested in the implementation of the panel in the gusto.com announced here serveral days before.The panel locates in the left side of such a url as: http://www.gusto.com/newyork/newyork-CityRestaurantFinder1744251.html?character_id=1041# The lists are type,theme,features,etc I think it is ajax style,can the developers tell me how to implement such a panel? very grateful! -- Posted
2006 Mar 14
14
Gusto.com Rails Site
Hello - I wanted to announce a very large web application that was built with Ruby on Rails and runs the site Gusto! http://www.gusto.com/ . It was deployed yesterday in a little over 4 months of development with 3 developers. The origins of the site were being developed in Java using Hibernate + Tapestry and the decision was made to port the 100+ table model to Rails to see if there were
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