Skip to content

Instantly share code, notes, and snippets.

View 28hq's full-sized avatar

Azizi Khalid 28hq

View GitHub Profile
# app/controllers/users/password_controller.rb
class Users::PasswordsController < Devise::PasswordsController
def resource_params
params.require(:user).permit(:email, :password, :password_confirmation)
end
private :resource_params
end
@28hq
28hq / gist:986906
Created May 23, 2011 15:41
Mailer Error
$ rails g
Usage: rails generate GENERATOR [args] [options]
General options:
-h, [--help] # Print generator's options and usage
-p, [--pretend] # Run but do not make any changes
-f, [--force] # Overwrite files that already exist
-s, [--skip] # Skip files that already exist
-q, [--quiet] # Suppress status output
$ rails generate mailer
Could not find generator mailer.