Sha256: 8105063d3d09caf654cf9d4f52aa89ddd11a656096ff7de73a8221eb50813651
Contents?: true
Size: 612 Bytes
Versions: 8
Compression:
Stored size: 612 Bytes
Contents
class RegistrationsController < ApplicationController def new @user = User.new end def create @user = User.new(params[:user]) if @user.save redirect_to sign_in_path, notice: "Thanks for signing up. Please check your email for activation instructions." else render action: 'new' end end def activate if @user = User.load_from_activation_token(params[:token]) @user.activate! auto_login @user redirect_to sign_in_path, notice: "Your account has been activated and you're now signed in. Enjoy!" else not_authenticated end end end
Version data entries
8 entries across 8 versions & 1 rubygems