def index
      activities = Activity.stream(viewer_id: current_user.id).decorate

      render :index, locals: { activities: activities,
                               current_id: nil,
                               title: "Activity stream",
                               note: Note.new }
    end
def index
      activities = Activity.stream(viewer_id: current_user.id).decorate

      render :index, locals: { activities: activities,
                               current_id: nil,
                               title: "Activity stream",
                               note: Note.new }
    end
GET /activities