Skip to content

Instantly share code, notes, and snippets.

Avatar

Felipe Cypriano fcy

View GitHub Profile
View refactory.rb
# encoding: utf-8
class OperationsController < ApplicationController
respond_to :json
rescue_from ActiveRecord::RecordNotFound, :with => :not_found
def show
operation = Operation.find(params[:id])
respond_with operation
end