carlos puche said about 3 years ago on Creating and Reading QR Codes :
Hello there, i'm a junior developer, i would like create a search by scan qr code, i created the barcode for each pets (in my case) but i don't how can create a search in the index method, can someone help me and thanks...

actually my problem is how can i use the camera on the index method??

 <%= form.label :name %>
  <%= content_tag :div, 'data-controller': 'scanner' do %>
    <%= content_tag :canvas, nil, width: 400, height: 240, 'data-scanner-target': 'canvas' %>
    <%= form.text_field :name, class: 'form-control', 'data-scanner-target': 'output' %>
  <% end %>