Sha256: 09d21065a875746b32525f82ce605a4fdf5baca3007422069ea2826e5e6e3527
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
class Auth::RegisteredUserController < ApplicationController skip_authentication layout 'guest' def new @form = Auth::RegisterForm.new render 'auth/register' end def create @form = Auth::RegisterForm.new params.permit(:name, :email, :password, :password_confirmation) return render 'auth/register', status: :unprocessable_entity if @form.invalid? user = User.create(name: @form.name, email: @form.email, password: @form.password) login user redirect_to dashboard_path end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kaze-0.5.0 | stubs/hotwire/app/controllers/auth/registered_user_controller.rb |