hi i use rails 3.0.1,mysql2 and ruby 1.9.2 on windows 7,but i met invalid date error in many places,for example,when add index,the error happens,i cancel index,but when activate user account using restful_authentication plugin,the error happens again. so how to fix it? or can you recommend the stable rails version to use.it seems to be a problem for a few people. -- Posted via http://www.ruby-forum.com/. -- 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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
can you give some suggestions? -- Posted via http://www.ruby-forum.com/. -- 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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sat, Nov 13, 2010 at 10:36 PM, Guo Yangguang <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> can you give some suggestions? >Can you provide specific code examples and resulting errors.... that would allow someone here to attempt to help you.> > -- > Posted via http://www.ruby-forum.com/. > > -- > 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 email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Kahn wrote in post #961291:> On Sat, Nov 13, 2010 at 10:36 PM, Guo Yangguang > <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote: > >> can you give some suggestions? >> > > Can you provide specific code examples and resulting errors.... that > would > allow someone here to attempt to help you.I have copied the code examples in the attached file,thank you for your help. Attachments: http://www.ruby-forum.com/attachment/5365/invalid_date.txt -- Posted via http://www.ruby-forum.com/. -- 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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sat, Nov 13, 2010 at 11:19 PM, Guo Yangguang <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> David Kahn wrote in post #961291: > > On Sat, Nov 13, 2010 at 10:36 PM, Guo Yangguang > > <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote: > > > >> can you give some suggestions? > >> > > > > Can you provide specific code examples and resulting errors.... that > > would > > allow someone here to attempt to help you. > > > I have copied the code examples in the attached file,thank you for your > help. > > Attachments: > http://www.ruby-forum.com/attachment/5365/invalid_date.txt >The error seems to be in users_controller.rb line 32.... can you show the code of this line and the surrounding method: ArgumentError (invalid date): app/controllers/users_controller.rb:32:in `activate''> > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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 email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> The error seems to be in users_controller.rb line 32.... can you show > the > code of this line and the surrounding method: > > ArgumentError (invalid date): > app/controllers/users_controller.rb:32:in `activate''line 32 is following: user = User.find_by_activation_code(params[:activation_code]) unless params[:activation_code].blank? the surrounding methods are in attached file. the activate is method invoked by a link in email template which is sent successfully by an observer. the route for activate method: match ''/activate/:activation_code'' => ''users#activate'', :as => :activate, :activation_code => nil -- Posted via http://www.ruby-forum.com/. -- 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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> The error seems to be in users_controller.rb line 32.... can you show > the > code of this line and the surrounding method: > > ArgumentError (invalid date): > app/controllers/users_controller.rb:32:in `activate''line 32 is following: user = User.find_by_activation_code(params[:activation_code]) unless params[:activation_code].blank? the surrounding methods are in attached file. the activate is method invoked by a link in email template which is sent successfully by an observer. the route for activate method: match ''/activate/:activation_code'' => ''users#activate'', :as => :activate, :activation_code => nil Attachments: http://www.ruby-forum.com/attachment/5366/surrounding_and_method_itself.txt -- Posted via http://www.ruby-forum.com/. -- 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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I created an user and read it in my rails console,the same error happened,it seems mysql2 has bug,but i don''t know how to manage it? please see the attachment. Attachments: http://www.ruby-forum.com/attachment/5367/invalid_date.PNG -- Posted via http://www.ruby-forum.com/. -- 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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
hi I have resolved the problem by uninstalling mysql2 and using the old mysql gem.Thank you David. -- Posted via http://www.ruby-forum.com/. -- 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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.