Skip to content

Instantly share code, notes, and snippets.

@bborn
Created October 3, 2009 20:42
Show Gist options
  • Save bborn/200854 to your computer and use it in GitHub Desktop.
Save bborn/200854 to your computer and use it in GitHub Desktop.
#models/my_thing.rb
class MyThing < ActiveRecord::Base
belongs_to :user
acts_as_activity :user
end
#views/activities/_unhandled_item.html.haml
- case activity.item_type
- when 'MyThing'
="created a MyThing: #{link_to(activity.item.name, user_my_thing_path(activity.item.user, activity.item))}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment