title: Devise: How to override devise error messages on password change
body: <p>How can I customize error messages to override devise passwords controller?</p>
  <pre><code>class PasswordsController &lt; Devise::PasswordsController
    def create
      self.resource = resource_class.send_reset_password_instructions(params[resource_name])
  
      if resource.errors.empty?
        set_flash_message(:notice, :send_instructions) if is_navigational_format?
        respond_with resource, :location =&gt; home_path
      else
        binding.pry
        flash[:devise_password_error] =  (resource.errors.map do |key, value|
          value.capitalize
        end).flatten.join('|')
        redirect_to home_path and return
      end
    end
    def edit
      self.resource = resource_class.new
      resource.reset_password_token = params[:reset_password_token]
    end
  end
  </code></pre>
  <p>resource.errors is available in this method but it contains default messages such as <code>Email not found</code> and <code>Email can't be blank</code>. i need to customize this messages. I've tried to remove <code>:validatable</code> from my user model and add custom validators but this works only for my custom registrations controller derived from Devise::RegistrationsController and not for custom passwords controller.</p>
  <p>Is there any solution?</p>