Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class SignupsController < ActionController::Base
  2. def create
  3. @signup = TenantCreator.new(signup_params)
  4. if @signup.call
  5. redirect_to welcome_url(account_id: @signup.tenant.subdomain, auth_token: @signup.user.auth_token)
  6. else
  7. flash.now[:error] = @signup.errors.full_messages.join(', ')
  8. render action: :index
  9. end
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement