Sha256: 14b5e6885ccaea143304b8f55f2e64c1ca789b71bdce317cde5f0ccf7efe1393

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

class UsersController < ApplicationController
  def new
    @user = User.new
  end

  def show
    @user = User.find(params[:id])
  end

  def create
    @user = User.new(params[:user])
    if @user.save
      self.me = @user
      redirect_to @user
    else
      render 'new'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
current_me-0.0.3 spec/dummy/app/controllers/users_controller.rb
current_me-0.0.2 spec/dummy/app/controllers/users_controller.rb
current_me-0.0.1 spec/dummy/app/controllers/users_controller.rb