Sha256: 51acbfd700a4ced01d106142b816a69f8bb78493cd6b5a8496e52524f1c87f17
Contents?: true
Size: 592 Bytes
Versions: 7
Compression:
Stored size: 592 Bytes
Contents
class Work::UsersController < ApplicationController before_filter :authenticate_user! def index @users = User.all end def new @user = User.new end def create @user = User.create(params.require(:user).permit(:name, :email, :password)) if @user.errors.any? render :new else redirect_to work_users_path end end def reset_password_email user = User.find(params[:id]) user.send_reset_password_instructions flash[:notice] = "Reset password instructions have been sent to #{user.email}." redirect_to work_users_path end end
Version data entries
7 entries across 7 versions & 1 rubygems