Sha256: 39aa6f9afe0ef3e2a94fb78ce0ce48598be863934aee165b0713464964c11a95
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
class RegistrationsController < ApplicationController skip_authorization_check 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
raygun-0.0.13 | app_prototype/app/controllers/registrations_controller.rb |