I tried to do a time_select like that : <%= time_select "drive" "departure" %> but it raises : can''t convert nil to string so, i tried : <%= datetime_select "drive, "departure", :order => [:hour, :minute] %> and as you imagine it raises the same error (cant convert nil to string) finally i played a little with the datetime_select : <%= datetime_select "drive, "departure", :order => [:hour, :minute] %> KO (cant convert string to nil) <%= datetime_select "drive, "departure", :order => [:hour, :minute, :month] %> OK <%= datetime_select "drive, "departure", :order => [:hour, :minute, :year] %> KO (cant convert string to nil) <%= datetime_select "drive, "departure", :order => [:hour, :minute, :year, :month] %> OK what''s the matter with :month ? Thx for your help. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<%= datetime_select("drive", "departure", :discard_year => true)%> OK <%= datetime_select("drive", "departure", :discard_month => true)%> KO (cant convert nil to string) .... On 20 juin, 17:02, Bensoussan Michael <pad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I tried to do a time_select like that : > > <%= time_select "drive" "departure" %> > > but it raises : can''t convert nil to string > > so, i tried : > > <%= datetime_select "drive, "departure", :order => [:hour, :minute] > %> > > and as you imagine it raises the same error (cant convert nil to > string) > > finally i played a little with the datetime_select : > > <%= datetime_select "drive, "departure", :order => [:hour, :minute] > %> KO (cant convert string to nil) > <%= datetime_select "drive, "departure", :order => > [:hour, :minute, :month] %> OK > <%= datetime_select "drive, "departure", :order => > [:hour, :minute, :year] %> KO (cant convert string to nil) > <%= datetime_select "drive, "departure", :order => > [:hour, :minute, :year, :month] %> OK > > what''s the matter with :month ? > > Thx for your help.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<%= datetime_select("drive", "departure", :discard_year => true)%> OK <%= datetime_select("drive", "departure", :discard_month => true)%> KO (cant convert nil to string) .... On 20 juin, 17:02, Bensoussan Michael <pad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I tried to do a time_select like that : > > <%= time_select "drive" "departure" %> > > but it raises : can''t convert nil to string > > so, i tried : > > <%= datetime_select "drive, "departure", :order => [:hour, :minute] > %> > > and as you imagine it raises the same error (cant convert nil to > string) > > finally i played a little with the datetime_select : > > <%= datetime_select "drive, "departure", :order => [:hour, :minute] > %> KO (cant convert string to nil) > <%= datetime_select "drive, "departure", :order => > [:hour, :minute, :month] %> OK > <%= datetime_select "drive, "departure", :order => > [:hour, :minute, :year] %> KO (cant convert string to nil) > <%= datetime_select "drive, "departure", :order => > [:hour, :minute, :year, :month] %> OK > > what''s the matter with :month ? > > Thx for your help.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<%= datetime_select("drive", "departure", :discard_year => true)%> OK <%= datetime_select("drive", "departure", :discard_month => true)%> KO (cant convert nil to string) .... On 20 juin, 17:02, Bensoussan Michael <pad...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I tried to do a time_select like that : > > <%= time_select "drive" "departure" %> > > but it raises : can''t convert nil to string > > so, i tried : > > <%= datetime_select "drive, "departure", :order => [:hour, :minute] > %> > > and as you imagine it raises the same error (cant convert nil to > string) > > finally i played a little with the datetime_select : > > <%= datetime_select "drive, "departure", :order => [:hour, :minute] > %> KO (cant convert string to nil) > <%= datetime_select "drive, "departure", :order => > [:hour, :minute, :month] %> OK > <%= datetime_select "drive, "departure", :order => > [:hour, :minute, :year] %> KO (cant convert string to nil) > <%= datetime_select "drive, "departure", :order => > [:hour, :minute, :year, :month] %> OK > > what''s the matter with :month ? > > Thx for your help.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Michael, I''ve been doing some date/time processing lately so your post got my attention. I scaffolded a little sandbox app and I can''t get the errors you''re getting. Are these being thrown in the view or the controller? Best regards, Bill Bensoussan Michael wrote:> <%= datetime_select("drive", "departure", :discard_year => true)%> OK > <%= datetime_select("drive", "departure", :discard_month => true)%> KO > (cant convert nil to string)--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
in the view, here the bug report : TypeError in Drives#new Showing drives/new.html.erb where line #49 raised: can''t convert nil into String Extracted source (around line #49): 46: } 47: 48: </script> 49: <%= f.datetime_select "departure_date", :discard_month => true%> RAILS_ROOT: /Users/mike/Documents/drivemeup_v001/drivemeup/trunk Application Trace | Framework Trace | Full Trace /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:651:in `insert'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:651:in `date_or_time_select'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:646:in `each'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:646:in `date_or_time_select'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:610:in `to_datetime_select_tag_without_error_wrapping'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ active_record_helper.rb:250:in `to_datetime_select_tag'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:707:in `datetime_select'' app/views/drives/new.html.erb:49:in `_run_erb_47app47views47drives47new46html46erb'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ form_helper.rb:317:in `fields_for'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ form_helper.rb:253:in `form_for'' app/views/drives/new.html.erb:7:in `_run_erb_47app47views47drives47new46html46erb'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb: 338:in `send'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb: 338:in `execute'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/ template_handlers/compilable.rb:29:in `send'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/ template_handlers/compilable.rb:29:in `render'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/ template.rb:35:in `render'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/ template.rb:22:in `render_template'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb: 245:in `render_file'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:1108:in `render_for_file'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:841:in `render_with_no_layout'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ layout.rb:251:in `render_without_benchmark'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:51:in `render'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ core_ext/benchmark.rb:8:in `realtime'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:51:in `render'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:1157:in `default_render'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:1163:in `perform_action_without_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:580:in `call_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:601:in `run_before_filters'' app/controllers/application.rb:53:in `set_lang'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ callbacks.rb:173:in `send'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ callbacks.rb:173:in `evaluate_method'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:395:in `call'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:598:in `run_before_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:578:in `call_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:573:in `perform_action_without_benchmark'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:68:in `perform_action_without_rescue'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:68:in `perform_action_without_rescue'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ rescue.rb:201:in `perform_action_without_caching'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ caching/sql_cache.rb:13:in `perform_action'' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/ connection_adapters/abstract/query_cache.rb:33:in `cache'' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/ query_cache.rb:8:in `cache'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ caching/sql_cache.rb:12:in `perform_action'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:529:in `send'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:529:in `process_without_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:569:in `process_without_session_management_support'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ session_management.rb:130:in `process'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:389:in `process'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:354:in `new_constants_in'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load'' /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/commands/servers/ mongrel.rb:64 /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:509:in `require'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:354:in `new_constants_in'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:509:in `require'' /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 vendor/plugins/globalite/lib/rails/localized_action_view.rb:100:in `datetime_select'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/benchmark.rb:293:in `measure'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:149:in `handle_request'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:107:in `dispatch'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:104:in `synchronize'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:104:in `dispatch'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:120:in `dispatch_cgi'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:35:in `dispatch'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in `process'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `synchronize'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `process'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `each'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/rubygems/custom_require.rb:27:in `require'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:651:in `insert'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:651:in `date_or_time_select'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:646:in `each'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:646:in `date_or_time_select'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:610:in `to_datetime_select_tag_without_error_wrapping'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ active_record_helper.rb:250:in `to_datetime_select_tag'' vendor/plugins/globalite/lib/rails/localized_action_view.rb:100:in `datetime_select'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ date_helper.rb:707:in `datetime_select'' app/views/drives/new.html.erb:49:in `_run_erb_47app47views47drives47new46html46erb'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ form_helper.rb:317:in `fields_for'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ form_helper.rb:253:in `form_for'' app/views/drives/new.html.erb:7:in `_run_erb_47app47views47drives47new46html46erb'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb: 338:in `send'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb: 338:in `execute'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/ template_handlers/compilable.rb:29:in `send'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/ template_handlers/compilable.rb:29:in `render'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/ template.rb:35:in `render'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/ template.rb:22:in `render_template'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb: 245:in `render_file'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:1108:in `render_for_file'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:841:in `render_with_no_layout'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ layout.rb:251:in `render_without_benchmark'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:51:in `render'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ core_ext/benchmark.rb:8:in `realtime'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:51:in `render'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:1157:in `default_render'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:1163:in `perform_action_without_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:580:in `call_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:601:in `run_before_filters'' app/controllers/application.rb:53:in `set_lang'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ callbacks.rb:173:in `send'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ callbacks.rb:173:in `evaluate_method'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:395:in `call'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:598:in `run_before_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:578:in `call_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:573:in `perform_action_without_benchmark'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:68:in `perform_action_without_rescue'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/benchmark.rb:293:in `measure'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:68:in `perform_action_without_rescue'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ rescue.rb:201:in `perform_action_without_caching'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ caching/sql_cache.rb:13:in `perform_action'' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/ connection_adapters/abstract/query_cache.rb:33:in `cache'' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/ query_cache.rb:8:in `cache'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ caching/sql_cache.rb:12:in `perform_action'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:529:in `send'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:529:in `process_without_filters'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:569:in `process_without_session_management_support'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ session_management.rb:130:in `process'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:389:in `process'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:149:in `handle_request'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:107:in `dispatch'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:104:in `synchronize'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:104:in `dispatch'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:120:in `dispatch_cgi'' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:35:in `dispatch'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in `process'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `synchronize'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in `process'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `each'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:354:in `new_constants_in'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load'' /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/commands/servers/ mongrel.rb:64 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/rubygems/custom_require.rb:27:in `require'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:509:in `require'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:354:in `new_constants_in'' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:509:in `require'' /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 Request Parameters: {"is_driver"=>"false"} Show session dump --- :return_to: /drives :user_id: 1 :csrf_id: 26d14a695a99d4d992023c08d16dce58 :expires_at: 2008-06-21 12:00:39.087184 +02:00 flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} On 20 juin, 18:41, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> Hi Michael, > > I''ve been doing some date/time processing lately so your post got my > attention. I scaffolded a little sandbox app and I can''t get the errors > you''re getting. Are these being thrown in the view or the controller? > > Best regards, > Bill > > Bensoussan Michael wrote: > > <%= datetime_select("drive", "departure", :discard_year => true)%> OK > > <%= datetime_select("drive", "departure", :discard_month => true)%> KO > > (cant convert nil to string)--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---