Hi<div><br></div><div>I hope someone can shed light on this problem: I have a problem when I use celerity to submit an in_place_editor_field in a rails application. I have attached a demo with a very small rails application that illustrates the problem. It&#39;s uses rails 2.3.2. In case zip files don&#39;t get sent to the mailing list, I have also uploaded it here:</div>
<div><br></div><div><a href="http://ninajansen.dk/wp-content/uploads/demo.zip">http://ninajansen.dk/wp-content/uploads/demo.zip</a><br></div><div><br></div><div>unzip it in your favorite directory</div><div>db:create</div>
<div>db:migrate</div><div>script/server</div><div><br></div><div>Now you should be able to navigate to</div><div><br></div><div><a href="http://localhost:3000/foos/new">http://localhost:3000/foos/new</a></div><div><br></div>
<div>Create a new foo, with any name. Then go to:</div><div><br></div><div><a href="http://localhost:3000/foos/1/edit">http://localhost:3000/foos/1/edit</a><br></div><div><br></div><div>Verify that you can use the in_place_editor to edit the name. The server output looks something like this:</div>
<div><br></div><div>-----</div><div><div>Processing FoosController#set_foo_name (for 127.0.0.1 at 2009-04-02 16:45:24) [POST]</div><div>  Parameters: {&quot;authenticity_token&quot;=&gt;&quot;BZWAOGJBIc2DK0tz5voK0CAtQTmJlRzIUmKSjF19keo=&quot;, &quot;id&quot;=&gt;&quot;1&quot;, &quot;value&quot;=&gt;&quot;Name&quot;, &quot;editorId&quot;=&gt;&quot;foo_name_1_in_place_editor&quot;}</div>
<div>  Foo Load (0.2ms)   SELECT * FROM &quot;foos&quot; WHERE (&quot;foos&quot;.&quot;id&quot; = 1) </div><div>Completed in 5ms (View: 1, DB: 0) | 200 OK [<a href="http://localhost/foos/set_foo_name/1">http://localhost/foos/set_foo_name/1</a>]</div>
<div>-----</div><div><br></div><div>Now, look at the celerity script I have put in script/celerity_demo.rb . It uses celerity to drive the in place editor. Run it with:</div><div><br></div><div>jruby script/celerity_demo.rb</div>
<div><br></div><div>The output from the server looks like this:</div><div>-----</div><div><div>Processing FoosController#show (for 127.0.0.1 at 2009-04-02 16:46:47) [GET]</div><div>  Parameters: {&quot;id&quot;=&gt;&quot;1&quot;, &quot;value&quot;=&gt;&quot;New name&quot;}</div>
<div>  Foo Load (0.2ms)   SELECT * FROM &quot;foos&quot; WHERE (&quot;foos&quot;.&quot;id&quot; = 1) </div><div>Rendering template within layouts/foos</div><div>Rendering foos/show</div><div>Completed in 6ms (View: 2, DB: 0) | 200 OK [<a href="http://localhost/foos/1/?value=New+name">http://localhost/foos/1/?value=New+name</a>]</div>
<div>-----</div><div><br></div><div>As you can see, by using celerity the http-request is wrong (it is a get request instead of a post, and it goes to &quot;/foos/1/?value=New+name&quot; instead of &quot;/foos/set_foo_name/1&quot;) . </div>
<div><br></div><div>I have also included a watir script, in script/watir_demo.rb (it uses safari watir). Run it with:</div><div><br></div><div>ruby script/watir_demo.rb<br></div><div><br></div><div>This works. This leads me to the conclusion that this must be a celerity problem. Can anyone that knows celerity help me out?</div>
<div><br></div><div>Sincerely</div><div><br></div><div>Nina Jansen</div><div><br></div></div><div><br></div><div><br></div></div>