Re: Email section

Manish Belsare
Thu, 11 Mar 2010 06:56:43 -0000

def remind
  @title = "Mail me my login information"
  if param_posted?(:user)
      email = params[:user][:email]
       user = User.find_by_email(email)
       if user
        UserMailer.deliver_reminder(user)
          flash[:notice] = "Login information was sent."
          redirect_to :action => "index", :controller =>
"site"
         else
         flash[:notice] = "There is no user with that email address."
       end
    end
  end

Sir this is the code that we implemented in email_controller for :action
=> "remind"

Do i need to make any corrections in diz code?