# Ajax.InPlaceEditor & REST

**URL:** <https://www.ruby-forum.com/t/ajax-inplaceeditor-rest/88194>\
**Category:** Rails\
**Created:** [March 8, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/ajax-inplaceeditor-rest/88194 "2007-03-08T21:24:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jko170](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jko170](https://www.ruby-forum.com/u/jko170)\
**Post date:** [March 8, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/ajax-inplaceeditor-rest/88194/1 "2007-03-08T21:24:02Z")

</div>

I cannot for the life of me get this to work:  
\<% @ranks.each do |rank| %\>

  
\<%= rank.number %\>  
\<%= rank.rank %\>\</  
span\>  
\<%= javascript\_tag “new  
Ajax.InPlaceEditor(‘edit\_#{rank.rank}’,  
‘#{rank\_url(rank)}’, {ajaxOptions:{method:‘put’}});” %\>

```
           <td><%= link_to 'X', rank_path(rank), :confirm => 'Are

```

you  
sure?’, :method =\> :delete %\>

  
\<% end %\>

I don’t see what is causing the problem. I click on the text and  
nothing happens. Any suggestions? (I have the javascript\_tag included  
in the head section.)

---

<div class="post-metadata">

**Author:** ![jko170](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d07c76/32.png) [@jko170](https://www.ruby-forum.com/u/jko170)\
**Post date:** [March 9, 2007, 3:04am UTC](https://www.ruby-forum.com/t/ajax-inplaceeditor-rest/88194/2 "2007-03-09T03:04:48Z")

</div>

Anyone else having problems with Ajax.InPlaceEditor & REST?
