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

Version Path
quo_vadis-1.4.2 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.4.1 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.4.0 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.3.2 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.3.1 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.3.0 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.2.3 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.2.2 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.2.1 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.2.0 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.1.2 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.1.1 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.1.0 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.0.7 test/dummy/app/controllers/users_controller.rb
quo_vadis-1.0.6 test/dummy/app/controllers/users_controller.rb