Skip to content

Instantly share code, notes, and snippets.

@raid5
Created October 21, 2010 05:39
Show Gist options
  • Save raid5/638009 to your computer and use it in GitHub Desktop.
Save raid5/638009 to your computer and use it in GitHub Desktop.
def index
#@activity = Activity.find(params[:activity_id])
#@accomplishments = @activity.accomplishments.completed.paginate :per_page => 4, :page => params[:page], :order => "created_at DESC"
@accomplishments = Accomplishment.completed.paginate :per_page => 4, :page => params[:page], :order => "created_at DESC"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment