Forum: Ruby on Rails Problems with in_place_editor_field

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
072162a90979f670d87c36ae8818ea13?d=identicon&s=25 Sergey Potapov (greyblake)
on 2009-04-08 01:33
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 -> /admin/set_song_lyrics/6

Method set_song_lyrics exists, but it's not called.
072162a90979f670d87c36ae8818ea13?d=identicon&s=25 Sergey Potapov (greyblake)
on 2009-04-12 16:41
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...
83c8cca11558f32207645ca270ae8475?d=identicon&s=25 Dingding Ye (Guest)
on 2009-04-12 17:30
(Received via mailing list)
http://github.com/rails/in_place_editing/tree/master

Get the new version here.

On Sun, Apr 12, 2009 at 10:41 PM, Sergey Potapov <
072162a90979f670d87c36ae8818ea13?d=identicon&s=25 Sergey Potapov (greyblake)
on 2009-04-13 01:01
Wow! Cool! It's working!
Thank you very much!
This topic is locked and can not be replied to.