Sha256: 880b549866494b7b3b370a72d229da5725a367634acb69c721ec23d0062ff2c2
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
require_dependency "jobshop/application_controller" module Jobshop class Welcome::RegistrationsController < ApplicationController skip_before_action :authenticate_user! before_action RegistrationTokenValidation layout "jobshop/unauthenticated" def new @registration = ::Jobshop::Registration.new(params) end def create @registration = ::Jobshop::Registration.new(params) if @registration.save sign_in_and_redirect(@registration.user) else render(:new) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jobshop-0.0.131 | app/controllers/jobshop/welcome/registrations_controller.rb |
jobshop-0.0.127 | app/controllers/jobshop/welcome/registrations_controller.rb |