title: Ruby on Rails and jeditable (jquery)
body: <p>Has anyone gotten the jquery plugin <a href="http://www.appelsiini.net/projects/jeditable" rel="nofollow noreferrer">jeditable</a> to run properly in a Rails applications. If so, could you share some hints on how to set it up? I'm having some trouble with creating the "submit-url".</p>
  
  <hr>
  
  <p>IIRC, you cannot simply call ruby code from within javascript (please let me be wrong:-). Do you mean RJS??? Isn't that limited to Prototype? I'm using jQuery.</p>
  
  <hr>
  
  <p><strong>UPDATE:</strong><br>
  uh.....asked this a while back and in the meantime switched to a different solution. But IIRC my main issue was the following:</p>
  
  <p>I'm using the RESTful resources. So let's say I have to model a blog and thus have the resource "posts". If I want to edit a post (e.g. the post with the ID 8), my update is sent via HTTP to the URL <a href="http://my.url.com/posts/8" rel="nofollow noreferrer">http://my.url.com/posts/8</a> with the HTTP verb POST. This URL however is constructed in my Rails code. So how would I get my submit-url into my jQuery code? Since this is RESTful code, my update URL will change with every post.</p>