I have a model entity called Project that can have one of three priority
states: high (1), medium (2), low (3). What I want to do is show all
ongoing projects from high – low priority.
@projects = Project.find(:all, :conditions => [“status = ‘ongoing’”],
:order => “priority asc”)
My view looks like this:
No projects have been created yet.<% end %>
The _project partial simply spits out the details for an individual
project. So how do I display projects like this:
- High Priority
— list of high projects
- Medium Priority
— list of medium priority projects
- Low Priority
— list of low priority projects
Thanks for the help!