Class: TagPlatesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tag_plates_controller.rb

Overview

Receives AJAX requests when creating tag plates, returns the plate information eg. lot number, template, status The front end makes a decision regarding suitability

Instance Method Summary collapse

Instance Method Details

#showObject



7
8
9
10
# File 'app/controllers/tag_plates_controller.rb', line 7

def show
  qcable = Presenters::QcablePresenter.new(api.qcable.find(params[:id]))
  respond_to { |format| format.json { render json: { 'qcable' => qcable } } }
end