Sha256: 4d82c8f63e8004ef7d752ade8e2fd77eb91363bf4d267361959e99fa58340e38

Contents?: true

Size: 1.29 KB

Versions: 4

Compression:

Stored size: 1.29 KB

Contents

# jsoneditor-rails

This gem packages the [JSON Editor](https://github.com/josdejong/jsoneditor) 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:

```ruby
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:

```js
//= require jsoneditor

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

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

```css
@import "jsoneditor";
```

## Development

* `git clone https://github.com/javierjulio/jsoneditor-rails.git`
* `bundle install`
* `rake update_json_editor_assets`
* Create pull request with latest changes

## Contributing

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

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jsoneditor-rails-1.0.3 README.md
jsoneditor-rails-1.0.2 README.md
jsoneditor-rails-1.0.1 README.md
jsoneditor-rails-1.0.0 README.md