jackpocket / jsoneditor-rails

This gem packages the JSON Editor assets for the Rails asset pipeline.
MIT License
15 stars 6 forks source link

jsoneditor-rails

Gem Version

This gem packages the JSON Editor assets (JavaScripts, stylesheets, and images) for the Rails asset pipeline, so you don't have to download a package.

Installation

Add this line to your application's Gemfile:

gem 'jsoneditor-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jsoneditor-rails

Usage

In your app/assets/javascripts/application.js add:

//= require jsoneditor

// Or use the minimalist version instead
//= require jsoneditor-minimalist

Then add the JSON Editor CSS to your app/assets/stylesheets/application.scss:

@import "jsoneditor";

Development

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jackpocket/jsoneditor-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.

License

The gem is available as open source under the terms of the MIT License.