# Problems with in\_place\_editor\_field

**URL:** <https://www.ruby-forum.com/t/problems-with-in-place-editor-field/164988>\
**Category:** Rails\
**Created:** [April 8, 2009, 1:33am UTC](https://www.ruby-forum.com/t/problems-with-in-place-editor-field/164988 "2009-04-08T01:33:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergeypo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sergeypo](https://www.ruby-forum.com/u/sergeypo)\
**Post date:** [April 8, 2009, 1:33am UTC](https://www.ruby-forum.com/t/problems-with-in-place-editor-field/164988/1 "2009-04-08T01:33:57Z")

</div>

Hi guys!  
I try to use with in\_place\_editor\_field method, but something is wrond.  
After editing data in form, when I press OK it show “Saving…”. Data  
itself doesn’t change. My console shows me following:

127.0.0.1 - - [08/Apr/2009:02:20:39 EEST] “POST /admin/set\_song\_lyrics/6  
HTTP/1.1” 422 9800  
[http://localhost:3000/admin/show\_song/6](http://localhost:3000/admin/show_song/6) → /admin/set\_song\_lyrics/6

Method set\_song\_lyrics exists, but it’s not called.

---

<div class="post-metadata">

**Author:** ![sergeypo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sergeypo](https://www.ruby-forum.com/u/sergeypo)\
**Post date:** [April 12, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/problems-with-in-place-editor-field/164988/2 "2009-04-12T16:41:59Z")

</div>

I found out it didn’t work because of protect\_from\_forgery (protection  
from CSRF attaks). So I commented string “protect\_from\_forgery” in  
ApplicationContoller and it works!  
But I still don’t how to make it works using protection…

---

<div class="post-metadata">

**Author:** ![sergeypo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sergeypo](https://www.ruby-forum.com/u/sergeypo)\
**Post date:** [April 12, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/problems-with-in-place-editor-field/164988/3 "2009-04-12T17:30:00Z")

</div>

> **[GitHub - rails/in\_place\_editing: NOTICE: official repository moved to...](https://github.com/rails/in_place_editing/tree/master)**
>
> master

Get the new version here.

On Sun, Apr 12, 2009 at 10:41 PM, Sergey Potapov \<

---

<div class="post-metadata">

**Author:** ![sergeypo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sergeypo](https://www.ruby-forum.com/u/sergeypo)\
**Post date:** [April 13, 2009, 1:01am UTC](https://www.ruby-forum.com/t/problems-with-in-place-editor-field/164988/4 "2009-04-13T01:01:22Z")

</div>

Wow! Cool! It’s working!  
Thank you very much!
