SpeciesFileGroup/taxonworks

View on GitHub
app/controllers/labels/factory_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Labels::FactoryController < ApplicationController
 # include DataControllerConfiguration::ProjectDataControllerConfiguration

  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
  
end