12 lines
336 B
Ruby
12 lines
336 B
Ruby
|
|
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
|