|
@@ -17,8 +17,8 @@ class FeedsController < ApplicationController |
|
|
# GET /feeds/1.json |
|
|
# GET /feeds/1.json |
|
|
def show |
|
|
def show |
|
|
@feed = Feed.find(params[:id]) |
|
|
@feed = Feed.find(params[:id]) |
|
|
@posts = @feed.posts.sort(:published.desc).paginate(:page => params[:page], :per_page => 20) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@posts = @feed.posts.order("published desc").paginate(:page => params[:page], :per_page => 20) |
|
|
|
|
|
|
|
|
respond_to do |format| |
|
|
respond_to do |format| |
|
|
format.html # show.html.erb |
|
|
format.html # show.html.erb |
|
|
format.json { render json: @feed } |
|
|
format.json { render json: @feed } |
|
|