fix titles

This commit is contained in:
Meutel 2015-06-28 15:03:30 +02:00
parent 03b1010149
commit 8553c371a5
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -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