search for: assign_multiparameter_attributes

Displaying 9 results from an estimated 9 matches for "assign_multiparameter_attributes".

2006 Jun 13
17
reconstituting a date
In my view code, I have <%= datetime_select "in_out", "time_in" %> which returns in params :in_out: !map:HashWithIndifferentAccess time_in(1i): "2006" time_in(2i): "6" time_in(3i): "12" time_in(4i): "20" time_in(5i): "24" and I want to save that datetime to a column in the db... if
2006 Mar 03
1
weird error with login engine
...--------------------- Full executation backtrace: -------------------------------------- [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1697:in `execute_callstack_for_multiparameter_attributes'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1677:in `assign_multiparameter_attributes'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1339:in `attributes='' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1188:in `initialize_without_callbacks'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:2...
2006 Apr 01
7
Any way around AssociationTypeMismatch?
I want to have popup menus and check boxes in my forms to let users select associated objects. In the form I''m working on, the object "belongs_to" another type of object which is selected from a popup menu. The id of the chosen object(s) for association is passed back in the parameter hash, but when rails creates a new object from this parameter hash, I get a
2006 Mar 02
6
Newb question about facade columns
...iverecord-1.13.2/lib/active_record/base.rb:1684:in `each'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1684:in `execute_callstack_for_multiparameter_attributes'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1677:in `assign_multiparameter_attributes'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1339:in `attributes='' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1266:in `update_attributes'' #{RAILS_ROOT}/app/controllers/event_controller.rb:34:in `update...
2006 Feb 04
0
date_select
...ntErrors: 2 error(s) on ariessignment of multiparameter attributes /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1697:in `execute_callstack_for_multiparameter_\attributes'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1677:in `assign_multiparameter_attributes'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1339:in `attributes='' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1266:in `update_attributes'' /home/mattc/minglead/config/../app/controllers/campaign_controll...
2007 Nov 02
1
1 error(s) on assignment of multiparameter attributes - Very Strange
...;, "num_boxes1"=>"0"}} Full trace follows: C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/ base.rb:2097:in `execute_callstack_for_multiparameter_attributes'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/ base.rb:2077:in `assign_multiparameter_attributes'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/ base.rb:1678:in `attributes='' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/ base.rb:1508:in `initialize_without_callbacks'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib...
2006 Jan 19
0
Activerecord error
...to fix it? Thanks. 2 error(s) on assignment of multiparameter attributes /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1697:in `execute_callstack_for_multiparameter_attributes'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1677:in `assign_multiparameter_attributes'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1339:in `attributes='' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1266:in `update_attributes'' ./script/../config/../app/controllers/minutes_controller.rb:52:in `update...
2007 Jun 22
2
problem with AR and 'virtual' multiparameter attributes.
Hello, I have a model which I would like to have a ''virtual'' date column. This column wouldn''t exist in the database, but would exist for validation, etc. The data would be provided in the form of a date_select in the view. This produces a multiparameter attribute. My problem is that the ''execute_callstack_for_multiparameter_attributes'' method in
2007 May 12
4
help, 1 error(s) on assignment of multiparameter attributes
Hi everyone! I just started learning Ruby on Rails about a week ago for a school project, and can''t seem to find a solution for something. I have this inside the form inside of edit_albums.rhtml: <%= start_form_tag :action=>''proccess_edit_album'', :id=>@album.id %> .... Release Date: <%= datetime_select(:album, :release_date, :start_year => 1960)