Added create method for user creation in the /admin/users_controller

This commit is contained in:
Gopesh Tulsyan 2014-08-18 16:40:03 +05:30
parent 7123d4ece0
commit 16de834243

View file

@ -27,6 +27,11 @@ module Admin
end
end
def create
@user = User.create(params[:user])
redirect_to admin_users_path, notice: "User created with #{@user.name} (#{@user.email})!"
end
def edit; end
def destroy