Initial site
rails g public_activity:migration
set up some callbacks to automatically create some activity records after the comments and recipes models are created, updated or destroyed
create activities controller to display friend's activities
record the controller on each request allowing us to access it on the model, our goal is to record the owner of the performing action(current user) at the model layer
track the owner of the performed action at the model layer but we have a problem current_user is a private method
remove current_user from private actions and prevent it from being considered a controller action
prevent raising an exception when attemp to create a record outside of the current request
hard code the activities performed by current_user friends in activities index view
render out a partial dependent on the type of actions performed by user friends
considering the case when the recipe has been destroyed so activity.trackable would be nil then
get only create and destroy tracked on the comment model
perform tracking activities through controller instead of callbacks on the model
display only the activities of friends instead of all activities
documentation