Sha256: 4cdde9143089b28927fc0669096114519ef57ebf3973141ef7601f6c1be0ea77
Contents?: true
Size: 391 Bytes
Versions: 10
Compression:
Stored size: 391 Bytes
Contents
class RegistrationsController < ApplicationController skip_before_action :authenticate def create @user = User.new(user_params) if @user.save render json: @user, status: :created else render json: @user.errors, status: :unprocessable_entity end end private def user_params params.permit(:email, :password, :password_confirmation) end end
Version data entries
10 entries across 10 versions & 1 rubygems