refactored view and model to make it cleaner
app/models/activity.rb
app/views/categories/show.html.erb

Created partial for activity row in index
app/views/categories/_activity.html.erb
Added split between dated and undated activities in activity helper
Updated controller accordingly
modified:   app/controllers/activities_controller.rb
modified:   app/helpers/activities_helper.rb