Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SignupsController < ActionController::Base
- def create
- @signup = TenantCreator.new(signup_params)
- if @signup.call
- redirect_to welcome_url(account_id: @signup.tenant.subdomain, auth_token: @signup.user.auth_token)
- else
- flash.now[:error] = @signup.errors.full_messages.join(', ')
- render action: :index
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement