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:
parent
151a785da9
commit
626462dc72
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue