<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -151,9 +151,9 @@ To load data directly from Rails, you can use to_json method:
       }
     });
 
-h4. Foreign keys
+h4. Foreign keys (only for select boxes)
 
-If edited attribute is a foreign key, you need to explictly tell so:
+If edited attribute is a foreign key, you need to explicitly specify it:
 
     element.editable({
       editField: {
@@ -163,6 +163,10 @@ If edited attribute is a foreign key, you need to explictly tell so:
       }
     });
 
+When using Rails helper, you need to refer to the actual object, instead of the foreign key:
+
+  edit_in_place(@post, :author)
+
 You also need to set #to_s method on the associated model i.e.
 
    class Author &lt; ActiveRecord::Base
@@ -171,9 +175,6 @@ You also need to set #to_s method on the associated model i.e.
      end
    end
 
-This will automatically send correct id to the server and then set value of
-edit-in-place element properly.
-
 h4. Ajax.Request callbacks
 
 You can set custom callbacks for Ajax.Request onLoading and onComplete events:</diff>
      <filename>README.textile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c709253db76c3139fd65f36a3c9b82f197ad20fd</id>
    </parent>
  </parents>
  <author>
    <name>Szymon Nowak</name>
    <email>szymon.nowak@u2i.com</email>
  </author>
  <url>http://github.com/nakajima/better-edit-in-place/commit/4d6e130fdedc847015199d86ad05d7024e4f23c7</url>
  <id>4d6e130fdedc847015199d86ad05d7024e4f23c7</id>
  <committed-date>2009-01-21T13:56:00-08:00</committed-date>
  <authored-date>2009-01-21T07:54:10-08:00</authored-date>
  <message>Updated foreign key section

Signed-off-by: Pat Nakajima &lt;patnakajima@gmail.com&gt;</message>
  <tree>c8fda6f6cf343392d8f320003d8109936333fc80</tree>
  <committer>
    <name>Pat Nakajima</name>
    <email>patnakajima@gmail.com</email>
  </committer>
</commit>
