Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
11
app/controllers/resources_controller.rb
Normal file
11
app/controllers/resources_controller.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user