No commit activity in last 3 years
No release in over 3 years
A Rails wrapper for the CanvasInput JS library.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.16
~> 10.0
 Project Readme

CanvasInput Rails

This gem wraps the CanvasInput.js library and makes it available to your Rails application.

The CanvasInput.js library allows you to build and use input fields in an HTML5 canvas.

You can read more about it here: CanvasInput

Versioning

The version of this gem tracks the versioning of the CanvasInput library, and the revision number may increment to allow for improvements to this implementation.

Example:

CanvasInput v1.2.7 == canvasinput-rails v1.2.7.2

Installation

Add this line to your application's Gemfile:

gem 'canvasinput-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install canvasinput-rails

Modify your app/assets/javascript/application.js file and add this line:

//= require canvasinput/CanvasInput

Usage

Use according to the documentation provided at CanvasInput

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/canvasinput-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Code of Conduct

Everyone interacting in the Canvasinput::Rails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.