Sha256: 084eef93d154422ef8f523589da87b6c40dbe6186c8d4109de222517e7f214fc

Contents?: true

Size: 544 Bytes

Versions: 11

Compression:

Stored size: 544 Bytes

Contents

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  def hello
    render text: 'Hello world!'
  end

  def welcome
    @user = User.new(params[:first_name], params[:last_name], params[:email], params[:password], params[:password_confirmation])
    if @user
      @logged_in = true
      render text: "Hello #{@user.full_name}!"
    else
      render text: 'Hello Anonymous!'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
warder-0.3.2 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.3.1 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.3.0 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.2.4 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.2.3 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.2.2 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.2.1 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.2.0 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.1.9 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.1.8 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb
warder-0.1.7 spec/fixtures/invalid_rails_app/app/controllers/application_controller.rb