```ruby 
@book = Book.find(params[:id])
```
should be moved to `before_filter`