Sha256: 11fee75f228190bc7846e85525a324fb293071c3b21cf5e1c831c0b2ca65998f
Contents?: true
Size: 208 Bytes
Versions: 2
Compression:
Stored size: 208 Bytes
Contents
class PostsController < ApplicationController respond_to :json, :xml, :html, :rabl_test_v1 def index @posts = Post.order('id ASC').load end def show @post = Post.find(params[:id]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rabl-0.9.0.pre2 | fixtures/rails4/app/controllers/posts_controller.rb |
rabl-0.9.0.pre | fixtures/rails4/app/controllers/posts_controller.rb |