Displaying 20 results from an estimated 21 matches for "multiparamet".
Did you mean:
multiparameter
2006 Jan 30
4
multiparameter assignment
I''m trying to figure out the rails why to break a single database field
out into multiple fields on a form, very similar to how rails does with
dates. How can I create my own object that mirrors the date objects
behaviur in how it accepts the multiparameter assignment from the form.
Example:
A phone number field (to force formating on the user) could be broken
into 3 form fields, formated server side, and written to the database in
a single field.
--
Posted via http://www.ruby-forum.com/.
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 base.rb of ActiveRecord looks at the columns array to
determine the ''class'' (klass) to use when doing the multiparameter
conversion. Since this column doesn''...
2006 Jun 23
0
Multiparameter error
Hello,
What''s the best way to deal with dates prior to 1970 using Rails. I''ve
seen some suggestions for hacks to fallback to the Date class if Time
fails, but I''m not sure exactly how to implement them.
This is from the wiki
require ''date''
# It''s necessary to do this, because Time doesn''t
# support dates before 1970...
class
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_expi...
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)
2007 Nov 02
1
1 error(s) on assignment of multiparameter attributes - Very Strange
...s strange.
I have a time select field, the field on the database is of type time
only.
When creating a document, as long as the time is not greater than
14:00, then it saves as 00:00, but if the time is greater than 14:00
and less than 22:00 then it throws this error:
1 error(s) on assignment of multiparameter attributes
Too make things fun, when I update the document, no problem, I can
enter any time and it saves.
Here are the values being passed, in this example, the dropofftime is
20:20.
Parameters: {"commit"=>"Create", "shipment"=>{"num_boxes2"=>&...
2006 Mar 02
6
Newb question about facade columns
...can''t change, so a schema change
isn''t realistic.
I would like to allow humans to view and edit this data in the form of
an actual human-readable date. I figured a facade column would be the
way to go here, but I am stuck on the fact that the inputs from the
facade type are multiparameter. This breaks the update_attributes call
in ActiveRecord::Base with a NoMethodError in my object''s controller''s
update method.
I have tried to add an additional attribute to the object''s attributes
hash, but this code (which I put in the controller''s update...
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 :actio...
2006 Jul 15
1
Trouble using date_select with blank options
I want to allow users to enter a day and a month, but not necessarily
a year. i.e. it should be optional.
If I select the day and month, but a blank year and then submit i get:
1 error(s) on assignment of multiparameter attributes
The paramaters regarding the date look like this:
{"date_of_birth(2i)"=>"3", "date_of_birth(3i)"=>"17","date_of_birth(1i)"=>""}
My select looks like this:
<%= date_select ''contact'', ''...
2008 Jul 18
1
finding "chuncks" of data that have no NA s
I have a data frame that is 122 columns and 70000ish rows it is a zoo
object, but could be easily converted or read in as something else. It is
multiparameter multistation water quality data - there are a lot of NA s. I
would like to find "chuncks" of data that are free of NA s to do some
analysis. All of the data is numeric. Is there a way besides graphing to
find these NA less "chuncks". I did not include data because of the s...
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 Jan 27
20
bundled_resource v.0.9
...s compatibility for non-javascript browsers is now improved.
Calling dynarch_date_select will call the built-in rails date_select
method so that users whose browsers have no javascript can still
select a date in a reasonable way.
There is no longer an obnoxious ?:date? field in the returned
multiparameter values.
Bundles now accept optional parameters. For the dynarch_calendar
bundle, you can specify the color stylesheet, language and icon for
your dynarch calendar.
12-hour time is handled in a novel way, so that the user enters a 12-
hour time (e.g. 3 PM) and Rails can read it as if it?s a 2...
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?
Denni...
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...
2005 Nov 14
0
date_select helper error
I have this date select helper:
<%= date_select("customer", "dob", :include_blank => true, :order =>
[:month, :day]) %>
I get this error when posting the form:
1 error(s) on assignment of multiparameter attributes
The error happens when I take off the :year option.
Any clues as to why this maybe happening?
Serge
2006 Aug 31
0
date_select error
Hi, when I try to use a date_select like this:
<%= date_select(:contact, :event, :discard_year => true) %>
I get the following error:
1 error(s) on assignment of multiparameter attributes
Ticket #3811
(http://dev.rubyonrails.org/attachment/ticket/3811/date_helper_megapatch_against_1.1.2.0)
Says it''s already corrected but I''m using rails 1.1.6 an still get the
error.
How do I apply the patch manually on windows?
Thanks,
Gabriel.
--~--~---------~-...
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...
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 th...
2006 Apr 15
2
Multi-parameter assignment
Hi,
I''m trying to submit data from text boxes on a form to one variable in
my controller, in the same way that datetime_select has date(1i),
date(2i), etc for day, month, year, etc...
I''ve named my variables event[start_date(1i)] event[start_date(2i)] and
event[start_date(3i)] but this doesn''t seem to work and
event[:start_date] is blank ... any pointers would be
2006 Jan 19
0
Activerecord error
Could anyone please tell me what this error means, and how 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...