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
|
def show
|
||||||
@book = Book.find(params[:id])
|
@book = Book.find(params[:id])
|
||||||
|
@title = @book.title
|
||||||
end
|
end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@books = Book.paginate(page: params[:page])
|
@books = Book.paginate(page: params[:page])
|
||||||
|
@title = "Books"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user