1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Error in Readme

We have to extend `ApplicationController` but not `Draper::Base`.
This commit is contained in:
Kurakin Alexander 2012-08-30 21:59:40 +04:00
parent 151a785da9
commit 626462dc72

View file

@ -296,7 +296,7 @@ end
Then you need to perform the wrapping in your controller. Here's the simplest method:
```ruby
class ArticlesController < Draper::Decorator
class ArticlesController < ApplicationController
def show
@article = ArticleDecorator.find params[:id]
end