Saturday, November 13, 2010

[Rails] Re: Re: Re: invalid date error in many cases

> 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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate