Curated list of episodes, bundled to help you on your learning path!
Videos of tech, infrastructure, hardware and software which non-instructional by nature.
Articles around software and tutorials.
Show your love and support while looking fancy.
Got a question or want to chat about a topic? Let's talk!
Sorry, my English is not so good.
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 %>
Please help me with searching. I want something like when you scan a QRcode what exist in a product send to show page and if is not saved send to new product page.
After scanning the code it give me the path of the product not the name like in your case
Could you help me with the following?
The scanner doesn't work on an iPhone properly. The page is loaded and the camera image is shown, but freezes right away (it basically shows a picture instead of video).
It seems like the code is still requesting the camera (green dot of camera usage is still on, and safari shows the red camera icon in the search bar), but no live feed.
Both Safari and Firefox on iOS show the same behavior.
On a Windows 10 PC it works, both with Edge and Firefox. On an Android devise with Chrome, the live feed works, but the image is stretched.
I'm using Rails 7 + Ruby 3.1. and used the Yarn install. This test is on a production server.
Maybe I should add the following:
I'm using Esbuild as bundler.
I also tried to use a cdn instead of the Yarn install but can't get it to work (I'm a beginner at this)