Sha256: e18971d4fb456aaf287667ccfc18199aa86ebecbddc82b67ea54a747ad78d678
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
require_dependency "mtdevise/application_controller" module Mtdevise class Account::UsersController < ApplicationController # Layouts and Filters before_action :authenticate_user! layout :layouts_resolver_accounts acts_as_token_authentication_handler_for User # Define New User def new @user = Mtdevise::User.new end # Create Account def create account = Mtdevise::Account.find_by_subdomain!(request.subdomain) user = account.users.create(user_params) sign_in user flash[:success] = "You have signed up successfully." redirect_to root_path end private # Common Params def user_params params.require(:user).permit(:email, :password, :password_confirmation) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mtdevise-5.0.1 | app/controllers/mtdevise/account/users_controller.rb |