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.
Sergey P. (Guest)
on 2009-04-08 03: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.
Sergey P. (Guest)
on 2009-04-12 18: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...
Dingding Ye (Guest)
on 2009-04-12 19: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 <
Sergey P. (Guest)
on 2009-04-13 03:01
Wow! Cool! It's working!
Thank you very much!
This topic is locked and can not be replied to.