Class: UsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/users_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#examples, #index

Instance Method Details

#createObject



4
5
6
7
8
9
10
11
12
# File 'app/controllers/users_controller.rb', line 4

def create
  params[:component] = "forms"
  @user = User.new(user_params)
  if @user.valid?
    # Toast message
  else
    render "examples/components/forms", status: 422
  end
end