Sha256: f954a06fa6f03acad173e33a61becaf3b465b05fff68b7fc8ff9e1e0fb4709b5
Contents?: true
Size: 189 Bytes
Versions: 5
Compression:
Stored size: 189 Bytes
Contents
class PostsController < ApplicationController respond_to :json, :xml def index @posts = Post.all(:order => "id ASC") end def show @post = Post.find(params[:id]) end end
Version data entries
5 entries across 3 versions & 1 rubygems