Class: Labels::FactoryController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/labels/factory_controller.rb

Instance Method Summary collapse

Instance Method Details

#unit_tray_header1Object

include DataControllerConfiguration::ProjectDataControllerConfiguration



4
5
6
7
8
9
10
# File 'app/controllers/labels/factory_controller.rb', line 4

def unit_tray_header1
  if c = Press::Labels.unit_tray_header1(params.require(:taxon_name_id))
    render json: {created: c} 
  else
    render json: {error: 'Error creating labels'}, status: :unprocessable_entity 
  end 
end