This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |