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/.
can you give some suggestions?
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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
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
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
Attachments:
http://www.ruby-forum.com/attachment/5367/invalid_date.PNG
I have resolved the problem by uninstalling mysql2 and using the old
mysql gem.Thank you David.