def create
      @account = AccountSubdomain::Account.new(account_params)

      if @account.save
        redirect_to eval("#{AccountSubdomain.after_creation_url}(:subdomain => '#{@account.subdomain}')"), notice: 'Account was successfully created.'
      else
        render action: 'new'
      end
    end
def create
      @account = AccountSubdomain::Account.new(account_params)

      if @account.save
        redirect_to eval("#{AccountSubdomain.after_creation_url}(:subdomain => '#{@account.subdomain}')"), notice: 'Account was successfully created.'
      else
        render action: 'new'
      end
    end
POST /accounts