Created
October 3, 2009 20:42
-
-
Save bborn/200854 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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