adi

Joined

70 Experience
0 Lessons Completed
0 Questions Solved

Activity

I have a Ruby on Rails web app via which I want to access my smart card reader connected to my PC via a USB.

The idea is to press a button in the web app to initiate read action in the card reader.[I have a ruby script to read the data serially and do what I want].I however want to extend the functionality to the web app,i.e. when the user clicks the read button on the webapp the card details are read via the card reader and displayed in the web page(Ruby on Rails web app). I am not sure on how to go about it. These are some of the "sources" that I have encountered online which might be the possible way:

WebUSB API
chrome.usb
libusb

Anyone who has previously done the same please guide me on how to go about it.

Hey Chris,I don't have a Users Controller.I am using devise so i have a registrations controller
class RegistrationsController < Devise::RegistrationsController
private

def sign_up_params
params.require(:user).permit(:email, :user_name, :full_name, :password, :password_confirmation)
end

def account_update_params
params.require(:user).permit(:email, :user_name, :password, :password_confirmation, :current_password)
end
end

I added an index action and created an index.json.builder but when i navigate to /registrations.json i get an error

So how do i get json file.

Posted in Global Autocomplete Search Discussion

Hey Chris Awesome Tutorial.
Can you do an Instagram like app tutorial with features like geolocation,tagging user in an image and hashtags

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.