LibraryManagementSystem/app/controllers/dashboard_controller.rb

8 lines
160 B
Ruby

class DashboardController < ApplicationController
before_action :authenticate_user!
def index
@books = current_user.books.page params[:page]
end
end