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