Title / Description
Code def index @articles = Article.where('published_on > ?', 3.months.ago) @article = Article.find_by_featured(:true) @blogroll = Article.all respond_to do |format| format.html # index.html.erb format.xml { render :xml => @articles } format.json { render :json => @articles } format.atom { render :atom => @articles } end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code