app/controllers/api/v1/excel_controller.rb
def instance
    params[:id] ?
      klass.find(params[:id])
      : nil
  end
# params[:id] required when requesting related records

params[:id] required when requesting related records
params [ : id ] required when requesting related records
def instance
    params[:id] ?
      klass.find(params[:id])
      : nil
  end
def instance params [ :id ] ? klass . find ( params [ :id ] ) : nil end
params[:id] required when requesting related records
params [ : id ] required when requesting related records