Displaying 11 results from an estimated 11 matches for "multiparameterassignmenterror".
Did you mean:
multiparameterassignmenterrors
2006 Jul 13
3
date_helper megapatch and MultiparameterAssignmentErrors
...ch in trac that fixes a lof of issues with the
date helpers. I''m afraid it hasn''t had any attention yet.
http://dev.rubyonrails.org/ticket/3811
This fixes all the little date_helper problems, except one: When you
choose an invalid date ActiveRecord throws an
ActiveRecord::MultiparameterAssignmentErrors. This used to work in
1.0, Februari 30th would be translated to March 2nd. I have no clue
on how this could be fixed since the Error is thrown deep inside. I
was going to create a ticket for this, but Trac isn''t working to well
at the moment.
It would be great if the date_helpers...
2005 May 31
2
Form Dates and MultiparameterAssignmentErrors
I''m using the date_select form helper for a date_of_birth field on an
ActiveRecord object. When I try to save a date earlier than 1 Jan 1970,
ActionController punts with
ActiveRecord::MultiparameterAssignmentErrors. The message it gives is
"1 error(s) on assignment of multiparameter attributes". I was able to
catch the exception and look at it, and it is certainly complaining
about saving the date_of_birth field.
The controller line throwing the exception is:
redirect_to :action => "lon...
2011 Jul 14
0
MultiparameterAssignmentErrors
...ct(''company[company_layout_attributes]'', :opening_hours,
:ignore_date => true, :minute_step => 15, :prompt => true) %>
</p>
BTW, this is a nested form.
If I go to the edit url for company_layout it works and I get no error, but
If I''m creating it the MultiparameterAssignmentErrors occurs.
Any ideas?
Thank you,
Rodrigo
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send...
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
...ration_3i"
name="user[card_expiration(3i)]" value="1" />
<%= f.date_select(:card_expiration, :start_year =>
2008, :use_month_numbers => false,
:discard_day =>
true, :include_blank => false) %></p>
ActiveRecord::MultiparameterAssignmentErrors in
AccountController#signup_unlimited
Parameters:
{"user"=>{"company_name"=>"",
"card_type"=>"Mastercard",
"password_confirmation"=>"",
"card_number"=>"",
"card_expiration(1i)"=...
2006 Sep 26
0
Bug or Feature?
Hello,
I know this came up before hand, but I haven''t seen a conclusive
answer. This is with regards to the MultiparameterAssignmentErrors and
select_date when submitting an invalid date (September 31st for
example). It seems that when an invalid date is submitted, the date
value should be set to nil as opposed to throw an exception that seems
a bit hard to catch elegantly and then provide validation.
The exception is raised in Acti...
2006 Jul 07
0
datetime/date problems w/ Oracle
...elect" for all generated
_form.rhtml files ( if you do not do this, the edit screen will blow up
with "NoMethodError private method ''hour'' called for #<Date") .
The problem is that when I actually go to perform the update ( a POST to
/foo/update/# ), I get a MultiParameterAssignmentError. The message reads
"N error(s) on assignment of multiparameter attributes", where N is equal
to the number of date_select controls on the form. Basically, I cannot
render the edit form with datetime_select and I cannot submit it with
date_select. What gives?
Dennis Byrne
---------...
2006 Jun 17
2
problem with select_date
In my form I have these items:
<%= select_year Date.today,
:start_year => Schoolyear.get_startdate.year,
:end_year => Schoolyear.get_enddate.year %>
<%= select_month Date.today.month %>
No matter what I do, in my controller I can''t seem to access the
selected year and
month.
I have tried params[:month].to_s and also
2006 Feb 04
0
date_select
...>"1", "start_date(3i)"=>"26",
"end_date(1i)"=>"2006", "end_date(2i)"=>"1"}}
The Controller -
campaign.update_attributes(params[:campaign])
generates this -
test_campaign_edit(CampaignControllerTest):
ActiveRecord::MultiparameterAssignmentErrors: 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_...
2007 Nov 18
0
Trouble overriding default accessor/mutator
...mutator for the
attribute and do the conversions there, using something that looks
like:
def duration
Time.at(self[:duration].to_i).getutc
end
def duration=(value)
self[:duration] = value.to_i
end
Everything seems OK, but when I go to save the record, I get the
following:
ActiveRecord::MultiparameterAssignmentErrors in
AdminController#update
1 error(s) on assignment of multiparameter attributes
What am I missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send em...
2006 Jan 06
3
Error Handling
Hi,
I am doing a project on invoice. For that I have to use a page both for
crating new invoices and for updation of existing invoices. The problem
is that when an error occures, I can''t maintain the same page for error
correction. How can I redirect it from the controller ? Or can I display
ruby errors before submit of the page in ruby?
Thanks..
Sainaba.
--
Posted via
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)