Sha256: 22822382bfe467d1dd2777d8e8d4f3cf6aba3065438bea4735c67985c081d950
Contents?: true
Size: 585 Bytes
Versions: 35
Compression:
Stored size: 585 Bytes
Contents
class ActivitiesController < ApplicationController def index # should be activities.page(params[:page], :count => { :select => 'activity.id', :distinct => true }) but it is not working in Rails 3.0.3 @activities ||= profile_subject. wall(:profile, :for => current_subject). page(params[:page]) respond_to do |format| format.js format.atom end end def show activity = Activity.find(params[:id]) redirect_to activity.direct_object || activity.receiver_subject end end
Version data entries
35 entries across 35 versions & 2 rubygems