Class: BcmsBlog::FeedsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/bcms_blog/feeds_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
# File 'app/controllers/bcms_blog/feeds_controller.rb', line 4

def index
  @blog = Blog.find(params[:blog_id])
  @blog_posts = @blog.posts.published.all(:limit => 10, :order => "published_at DESC")
end