You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<% if current_member %>
<%= link_to 'My Tutorials' %>
<% end %>
In the controller/users_controller.rb
class UsersController < ApplicationController
before_action :set_user, only: [:show, :edit, :update, :destroy]
# GET /users
def index
@users = User.all
@tutorials = Tutorial.all
if current_member
redirect_to user_tutorial
end
end
...
The text was updated successfully, but these errors were encountered:
In the _nav partial
In the
controller/users_controller.rb
The text was updated successfully, but these errors were encountered: