test

Ruby code posted by Kevin
created at 03 May 05:55

Edit | Back
1
2
3
4
5
6
7
8
def index
    @posts = Post.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @posts }
    end
  end
159 Bytes in 2 ms with coderay