Sha256: 082d0aa2645f3e7843d5d5e378f07270cb7f80c2f5078821fae7963fc7b1772e
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 Bytes
Contents
require_dependency "jobshop/application_controller" module Jobshop class RegistrationsController < ApplicationController def new @registration = ::Jobshop::Registration.new(params) render json: @registration 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
4 entries across 4 versions & 1 rubygems