0.02
A long-lived project that still receives updates
This gem provides JSON Editor for your Rails 4+ application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0
 Project Readme

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

  • git clone https://github.com/jackpocket/jsoneditor-rails.git
  • bundle install
  • rake update_assets
  • Create pull request with latest changes

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.