Forum: Ruby on Rails in_place_editing won't update, keeps saving...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
CompUser (Guest)
on 2008-10-06 18:04
(Received via mailing list)
Hey lads,

I'm stuck!! implementing in_place_editing is simple, according to many
tutorials. but i can't find out what i'm doing wrong. I can edit the
text, but when I hit the "Ok" key, the "Saving..." part comes up and
nothing happen. any idea's? Thanks!!

  in_place_edit_for :blog_post, :content

  def set_blog_post_content
    post = Blog::Post.find(params[:value])
    render :text => post.content


<%  @blog_post = @post%>
<%= in_place_editor_field :blog_post, :content%>
Shandy N. (Guest)
on 2008-10-06 19:26
CompUser wrote:

Have you checked in your log files to see if any kind of error is being
CompUser (Guest)
on 2008-10-07 11:56
(Received via mailing list)
Hmm you're right, get this error:


I know i saw this error on other side's and found a patch (http://
in_place_editing_should_work_with_csrf_and_rjs.patch) but this didn't
solve the problem. Still get the error as showen above

On 6 okt, 17:26, Shandy N. <removed_email_address@domain.invalid>
CompUser (Guest)
on 2008-10-07 12:27
(Received via mailing list)
Oke have it working now, not complete DRY. Because I used namespaces
and named routes my routing to the right variable was corrupt. But
fixed the namespace issue and it works fine for me now. Thanks for
your help!!
This topic is locked and can not be replied to.