diff --git a/.Gemfile.swp b/.Gemfile.swp deleted file mode 100644 index e0ef2c9..0000000 Binary files a/.Gemfile.swp and /dev/null differ diff --git a/app/controllers/books_controller.rb b/app/controllers/books_controller.rb index 4b7aae8..a4a694f 100644 --- a/app/controllers/books_controller.rb +++ b/app/controllers/books_controller.rb @@ -2,10 +2,12 @@ class BooksController < ApplicationController def show @book = Book.find(params[:id]) + @title = @book.title end def index @books = Book.paginate(page: params[:page]) + @title = "Books" end end