test

Ruby code posted
created at 30 Jan 03:00, updated at 30 Jan 03:00

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
  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
389 Bytes in 2 ms with coderay