Sha256: 308555938a99990b542be8e1446dd9fc8cac6d8693b7cb313965c8dea10ed823

Contents?: true

Size: 1.23 KB

Versions: 6

Compression:

Stored size: 1.23 KB

Contents

# X-editable for Rails [![Gem Version](https://badge.fury.io/rb/bootstrap-x-editable-rails.png)](http://badge.fury.io/rb/bootstrap-x-editable-rails)

[X-editable](https://github.com/vitalets/x-editable) is an in-place editing plugin with support for Twitter Bootstrap, jQuery UI or pure jQuery.

The `bootstrap-x-editable-rails` gem integrates `X-editable` with Rails asset pipeline. This gem only supports the Bootstrap part of X-editable.

## Usage

### Install bootstrap-x-editable-rails gem

Include `bootstrap-x-editable-rails` in Gemfile

    gem 'bootstrap-x-editable-rails'

Then run `bundle install`

### Include X-editable javascript

Add to your `app/assets/javascripts/application.js`

    //= require bootstrap-editable


### Include X-editable stylesheet

Add to your `app/assets/stylesheets/application.css`

    *= require bootstrap-editable

## Updating the gem
There are two rake tasks designed to ease the maintenance of this gem.

The `update` task pulls the latest X-editable code from github and places images, stylesheets and javascripts in the correct gem paths. It also changes background-image properties in the stylesheet to asset pipeline equivalents.

	rake update
	
The `build` task is a simple wrapper for `gem build`
	
	rake build

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bootstrap-x-editable-rails-1.5.1 README.md
bootstrap-x-editable-rails-1.5.0 README.md
bootstrap-x-editable-rails-1.4.6.1 README.md
bootstrap-x-editable-rails-1.4.6 README.md
bootstrap-x-editable-rails-1.4.5.1 README.md
bootstrap-x-editable-rails-1.4.5 README.md