business logic in views • Try to encapsulate logic into helper functions or view classes • See field_logs_helper#field_log_task_badge for an example solution Wednesday, August 15, 12
to manage • Split into logical partials when over 100 lines or so • See field_log_approvals#new for an example of a view that could use a refactor • See every NOC view for more examples Wednesday, August 15, 12
to views • Gives you a more appropriate place to put view-specific logic (other than the model) • May also make views more testable Wednesday, August 15, 12