When I try to send an email to a user to resell the password, I get an error message at startup. Other mail functions work, so I know that the configuration settings are correct. The headline reads: "Timeout :: Password error resetsController # create"
Here is the password for resets_controller:
def create @user = User.find_by_email(params[:email]) if @user User.deliver_password_reset_instructions(@user.id) flash[:notice] = "Instructions to reset your password have been emailed to you. " + "Please check your email." redirect_to '/' else flash[:notice] = "No user was found with that email address" render :action => :new end end
Here is the method inside User.rb
def self.deliver_password_reset_instructions(user_id) user = User.find(user_id) user.reset_perishable_token! Emailer.deliver_password_reset_instructions(user) end
Finally, here is the actual method inside emailer.rb:
default_url_options[:host] = "http://0.0.0.0:3000"
Why does the error message mention "Password" causing a timeout :: error
scott source share