similar to: Bug or Feature?

Displaying 20 results from an estimated 1100 matches similar to: "Bug or Feature?"

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
2006 Mar 02
6
Newb question about facade columns
Hello, I am trying to deal with a database table that contains a date in the form of the number of seconds since epoch. Data is inserted in this format by an existing script that I 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
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
2006 Feb 04
0
date_select
Can you see an obvious reason why this date_select code is failing? The parameters from the form - *Parameters*: {"commit"=>"Save All Changes", "campaign_id"=>"1", "campaign"=>{"name"=>"fdsfas", "end_date(3i)"=>"26", "start_date(1i)"=>"2006",
2007 Nov 18
0
Trouble overriding default accessor/mutator
I have a database column storing a duration value as a number of seconds, but I''d like users to be able to see it and edit it as a time value. I am trying to override the default accessor/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
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''
2007 Nov 02
1
1 error(s) on assignment of multiparameter attributes - Very Strange
Hello... Well, I post this one without too much hope that someone will be able to give me an answer, because it is 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
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
I am trying to create a form for processing credit cards. For the credit card expiration date, I would like to leave the day field out of the form for obvious reasons. However, the following code is producing an error for me. Any ideas? Thanks! <p><label for="email">Expiration</label><br/> <input type="hidden" id="user_card_expiration_3i"
2006 Jan 30
1
how to get column_for_attribute?
Hi all, In the code below I don''t understand: 1. Why I have to prepend overriden method content_columns with "self." to get it working? 2. Why column_for_attribute method is not working (no such method?) even if SomeTable is subclass of ActiveRecord::Base which have public column_for_attribute method? > class SomeTable < ActiveRecord::Base > > def
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",
2006 Mar 09
1
[TIP] Making an intelligent form fields
After searching arround I found a quite smart solution to me for binding form fields to model in an active way. I use aggregations with single value objects such as class Percentage attr_accessor :value def initialize(value) @value = (value.is_a? String) ? value.tr('' %'', '''').to_f : value end def to_s return unless value
2006 Jul 07
0
datetime/date problems w/ Oracle
I am "script\generate scaffold"ing w/ Oracle. The CRUD controls for DATE columns in _form.rhtml are generated as datetime_select, rather than date_select . This is understandable, as Oracle uses a DATETIME data type for DATE columns. I''m also not too bothered by the fact that I have to manually replace "datetime_select" w/ "date_select" for all
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)
2012 Feb 17
2
DC Universe Online not working with new nvidia drivers
I'm not sure if this is a wine or nvidia related bug, so I'd really appreciate some help... After upgrading to nvidia 295.20 this game fails to start, giving the following error: Code: <?xml version="1.0" encoding="ISO-8859-1"?> <crash_report> <version_cookie /> <platform>win32</platform> <os_info>Version 5.1 Build 2600
2006 Jul 02
1
DRY? Why select_date and select_date?
Why select_date and select_date? I dont understand why having both (backward compat?). I also look that their source are different, one use the InstanceTag and others calls 3 select_(year, month, day) functions.
2008 Dec 13
0
select_tag and select_date how to change inline font
I have been trying to change the font size in the select_date but i haven''t had any luck here''s what i did: <%= select_date( Date.today, :prefix => ''prom_date_end'', :order => [ :day,:month, :year], :html => {:style => "font-size: xx-small;"}) %> --~--~---------~--~----~------------~-------~--~----~ You received this message because
2006 Mar 21
5
Use select_date for my model?
Hi all I have a model "party" that has a time field "starts_at". I have created a form to add new instances of this model. <%= select_date Date.today, :prefix => ''party'' %> Sadly I get the error: NoMethodError in Parties#add undefined method `month='' for #<Party:0x256a600> How can I fix this problem? I remember that I saw in
2006 Dec 08
4
select_date method
Hi Everyone, I used "select_date" method in my application and got 3 select boxes for Date, Month and Year. Code : <td><%= text_field ''content'', ''title'' %></td> <td><%= text_field ''content'', ''description'' %></td> <td><%= select_date %></td>
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
Hi -- I''ve got a very strange error. I have an action called ''commit_input'' on a controller called ''SiteVisitController''. This definately exists, and is called from the functional test for it, and passes fine. My problem is with the form that is supposed to call this action. The form tag is: <%=
2011 Jul 14
0
MultiparameterAssignmentErrors
The attached file show the error I''m getting. I have a time time in my migration and a time_select: <%= f.fields_for :company_layout do |company_layout_form| %> <p> <%= company_layout_form.label ''HorĂ¡rio de abertura'' %> <%= time_select(''company[company_layout_attributes]'', :opening_hours, :ignore_date => true,