Sha256: ebf89fc5cc165af149e1c6626f126c18e4c58b65d9657cc1576858c5591f4fb0
Contents?: true
Size: 843 Bytes
Versions: 1
Compression:
Stored size: 843 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 flash_notice_after_create redirect_to(url_after_create) else render :template => 'users/new' end end private def flash_notice_after_create flash[:notice] = translate(:deliver_confirmation, :scope => [:clearance, :controllers, :users], :default => "You will receive an email within the next few minutes. " << "It contains instructions for confirming your account.") end def url_after_create new_session_url end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clearance-0.8.4 | app/controllers/clearance/users_controller.rb |