Make barcodes visible
This commit is contained in:
parent
4863a7c66c
commit
be2a3f1535
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ class BarcodesController < ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@barcodes = Barcode.all.order(:code)
|
@barcodes = Barcode.all.order(:code)
|
||||||
|
respond_to do |format|
|
||||||
|
format.json {render json: @barcodes}
|
||||||
|
format.html {}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|
Loading…
Reference in a new issue