'How can I add Signature Pad to my Rails App?

I'm trying to figure out how to add a signature pad field (from: https://github.com/szimek/signature_pad) in my Rails app but I have no idea how to implement it for MVC file structure in a Rails app. I don't even want to use a rails form, just html for this particular use case but I just CANNOT get the JS to work and it's incredibly frustrating.

I don't understand the documentation after the installation process via yarn. If anyone can help, I'd really appreciate it.



Solution 1:[1]

You should be able to install this by adding it to package.json. package.json is to Node what Gemfile is to Ruby.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jerry