README.md in x-editable-rails-1.0.3 vs README.md in x-editable-rails-1.1.0

- old
+ new

@@ -57,9 +57,14 @@ ```ruby %h1= editable Page, @page, 'name', nested: 'translations', nid: @page.translation.id, e: @page.name # nested: nested attributes, nid: id of nested attribute ``` +Example of nested resource +```ruby +%h1= editable Picture, [picture.gallery, picture], 'name', nested: 'translations', nid: picture.translation.id, e: picture.name +``` + You can also update everything directly. ```haml %a{href: '#', class: 'editable', data: { type: 'text', model: 'post', name: 'name', url: post_path(post), 'original-title' => 'Your info here'}}= post.name ``` or if nested