Title / Description
Code class InvoicesController < ApplicationController respond_to :html, :xml, :json def show @invoice = Invoice.find(params[:id) respond_with(@invoice) end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code