> Hey, I want to highlight rows in an index view based on their
> timeliness. That is, is a record late, due soon, etc. Is it a better
> practice to put the business logic in the helper or model?

Both.  Add methods to your model such as is_late?, due_soon?, etc  
(returning true/false).  Then in your helper method use those methods  
to determine what style to apply to the row.

-philip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to