Sha256: 1751eeb965973ebb2cdbabe2b200e087f89f13a146dffaf1340d8e7eb4cc80a4

Contents?: true

Size: 272 Bytes

Versions: 2

Compression:

Stored size: 272 Bytes

Contents

class CommentsController < ApplicationController
  
  respond_to :xml, :json

  include_resource :user
  
  def index
    @comments = Comment.all
    respond_with(@comments)
  end

  def show
    @comment = Comment.find(params[:id])
    respond_with(@comment)
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
resource_inclusion-0.0.2 test/app/app/controllers/comments_controller.rb
resource_inclusion-0.0.1 test/app/app/controllers/comments_controller.rb