Sha256: 86dc5ce1113163f45923748f34046861faa6f200c01933bb6b573a2bd2788f2f
Contents?: true
Size: 724 Bytes
Versions: 2
Compression:
Stored size: 724 Bytes
Contents
class Clearance::UsersController < ApplicationController unloadable before_filter :redirect_to_root, :only => [:new, :create], :if => :signed_in? filter_parameter_logging :password def new @user = ::User.new(params[:user]) render :template => 'users/new' end def create @user = ::User.new params[:user] if @user.save ::ClearanceMailer.deliver_confirmation @user flash[:notice] = "You will receive an email within the next few minutes. " << "It contains instructions for confirming your account." redirect_to url_after_create else render :template => 'users/new' end end private def url_after_create new_session_url end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
thoughtbot-clearance-0.6.3 | app/controllers/clearance/users_controller.rb |
vita-clearance-0.6.3 | app/controllers/clearance/users_controller.rb |