README.md in x-editable-rails-1.5.5 vs README.md in x-editable-rails-1.5.5.1
- old
+ new
@@ -2,10 +2,14 @@
[![Build Status](https://travis-ci.org/werein/x-editable-rails.svg)](https://travis-ci.org/werein/x-editable-rails) [![Code Climate](https://codeclimate.com/github/werein/x-editable-rails/badges/gpa.svg)](https://codeclimate.com/github/werein/x-editable-rails) [![Test coverage](https://codeclimate.com/github/werein/x-editable-rails/badges/coverage.svg)](https://codeclimate.com/github/werein/x-editable-rails) [![Version](https://badge.fury.io/rb/x-editable-rails.svg)](https://badge.fury.io/rb/x-editable-rails) [![Dependencies](https://gemnasium.com/werein/x-editable-rails.svg)](https://gemnasium.com/werein/x-editable-rails)
X-editable for Rails
+## Live demo
+
+Checkout live demo [here](https://x-editable-rails.herokuapp.com/?denied=true)
+
## Installation
Add this line to your application's Gemfile:
gem 'x-editable-rails'
@@ -75,12 +79,12 @@
//= require editable/inputs-ext/wysiwyg-color
```
### Making Things Editable
-`x-editable-rails` provides a helper method in your view to make your model values editable.
-By default, you need to specify the model and property that should be editable.
+`x-editable-rails` provides a helper method in your view to make your model values editable.
+By default, you need to specify the model and property that should be editable.
A `span` element is rendered with `data-*` attributes used by `x-editable`.
```ruby
# the editable object and the attribute to edit
%h1= editable @model, :name
@@ -152,17 +156,17 @@
* **e** - Specify a custom (error) message to display if the value isn't editable
### "Don't Repeat Yourself" Templates
-To make your views cleaner, you can specify all your options for each class and attribute in a YAML configuration file.
+To make your views cleaner, you can specify all your options for each class and attribute in a YAML configuration file.
Attributes where the `title` or `placeholder` are not different except maybe capitalized can be left out because they are automatically capitalized when rendered (see above).
-This example uses the `MailingList` class and its attributes.
-The attribute value can be a string, which is used as the `title` and `placeholder`.
+This example uses the `MailingList` class and its attributes.
+The attribute value can be a string, which is used as the `title` and `placeholder`.
If you want to specify other options, create a hash of options.
-Install configuration file like this: `rails g x_editable_rails:install`, this step is not necessary
+Install configuration file like this: `rails g x_editable_rails:install`, this step is not necessary
```yaml
class_options:
MailingList:
# Specify placeholder text for each attribute or a Hash of options