empowerhack / DrawMyLife-Service

API and Admin system for the Draw My Life initiative - Volunteers: check README and GitHub Projects to get started.
https://github.com/empowerhack/DrawMyLife-Service/projects
MIT License
13 stars 0 forks source link

Set up standard for view presentation logic (helpers/decorators) #72

Closed krissy closed 8 years ago

krissy commented 8 years ago

To keep views simple and logic-free we can either rely on built-in Rails helpers or we can implement decorators which allow you to wrap models with presentation/context-based methods. I'm feeling the latter, which we can implement with the help of the Draper gem.

Either way, while we're doing this scan the views for logic that we can either move into helpers or as decorator methods once implemented.