File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11class UsersController < ApplicationController
2+
23 def index
34 if current_user . super_user?
45 @users = User . paginate ( page : params [ :page ] , per_page : 25 )
@@ -18,7 +19,7 @@ def create
1819 set_password
1920 if @user . save
2021 @user . notifications . create ( notification_type : 0 )
21- flash [ :alert ] = " User has been created."
22+ flash [ :alert ] = ' User has been created.'
2223 redirect_to users_path
2324 else
2425 render :new
@@ -56,10 +57,10 @@ def update
5657
5758 if @user . update ( user_params )
5859 # @user.notifications.create(notification_type: 1)
59- flash [ :alert ] = " User updated."
60+ flash [ :alert ] = ' User updated.'
6061 redirect_to users_path
6162 else
62- flash [ :alert ] = " Unable to update user."
63+ flash [ :alert ] = ' Unable to update user.'
6364 render :edit
6465 end
6566 end
You can’t perform that action at this time.
0 commit comments