fix titles
This commit is contained in:
parent
03b1010149
commit
8553c371a5
BIN
.Gemfile.swp
BIN
.Gemfile.swp
Binary file not shown.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user