Organise with layouts
This commit is contained in:
@@ -2,9 +2,11 @@ class UsersController < ApplicationController
|
||||
before_action :set_user, only: %i[ destroy edit update show ]
|
||||
|
||||
def index
|
||||
@title = "All users"
|
||||
end
|
||||
|
||||
def edit
|
||||
@title = "My settings"
|
||||
end
|
||||
|
||||
def update
|
||||
@@ -16,6 +18,7 @@ class UsersController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
redirect_to edit_user_path(@user)
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
Reference in New Issue
Block a user