Sha256: a1f5225942afe1d74ad9e0ee06f131216eb8f4c6768f09807db843dac80f949d
Contents?: true
Size: 294 Bytes
Versions: 15
Compression:
Stored size: 294 Bytes
Contents
class UsersController < ActionController::Base def new @user = User.new end def create @user = User.new params[:user] if @user.save flash[:notice] = 'You have signed up!' sign_in @user # <-- Quo Vadis sign-in hook else render 'new' end end end
Version data entries
15 entries across 15 versions & 1 rubygems