Files

12 lines
336 B
Ruby
Raw Permalink Normal View History

class ResourcesController < ApplicationController
caches_page :index
def index
@posts = WpBlogPost.find(:all, :limit => Settings.resources.blog_posts)
@featured_articles = Article.published.featured(Settings.resources.featured_articles)
@articles = Article.cute_ordered.published - @featured_articles
end
end