Model#decorate not mentioned in Readme . . . #364

Closed
tovodeverett opened this Issue Dec 5, 2012 · 2 comments

Comments

Projects
None yet
4 participants
Contributor

tovodeverett commented Dec 5, 2012

The Readme section "In The Controller" (https://github.com/drapergem/draper#in-the-controller) indicates that there are three ways to get a decorator, but then it only shows two ways. It seems like it's leaving out the most intuitive approach:

Article.find(params[:id]).decorate
Article.all.decorate

This appears to be supported in both 0.18.0 (it's working for me) and I finally found it in Draper::Decoratable in master.

Is there a reason this approach isn't mentioned in the Readme? If it should be in the Readme, it might make sense to also show it in Step 5 of the Quick Start at the beginning of the Readme.

Yeah, README needs update or wiki needs to get some attention and include all these kinds of cases... :)

Owner

steveklabnik commented Dec 7, 2012

Yes, once we get everything sorted out with functionality, I want to re-do the entire README before the actual release. I'll leave this open to remind myself that this exact case needs attention. :)

haines closed this in 52360b6 Dec 31, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment