Article:
 |
|
Rolling with Ruby on Rails
|
| Subject: |
|
Leap year/February error in Part 1 examples |
| Date: |
|
2005-12-30 20:16:20 |
| From: |
|
Alucard01
|
|
|
|
Hi all.
Do anyone of your find out the date problem in the example?
In the example after first type the code: scraffold :recipe, when the methods list and edit are not yet defined, if you edit the item date to 'February 31' and click update, an error is raised:
ActiveRecord::MultiparameterAssignmentErrors in Recipe#update
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1697:in `execute_callstack_for_multiparameter_attributes'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1677:in `assign_multiparameter_attributes'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1339:in `attributes='
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/scaffolding.rb:137:in `update'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in `send'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in `perform_action_without_filters'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:332:in `perform_action_without_benchmark'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in `measure'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescue.rb:82:in `perform_action'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in `send'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in `process_without_session_management_support'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session_management.rb:116:in `process'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch'
C:/xampp/htdocs/testApp/public/dispatch.cgi:10
It seems that RoR still not handled the date very well. And can it be solved by editing the RoR example or RoR source code?
Thanks for attention.
|
Showing messages 1 through 1 of 1.
-
Leap year/February error in Part 1 examples
2005-12-30 20:22:08
Alucard01
[View]
Ruby and RoR are up-to-date also, using gem update.