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!! controller in_place_edit_for :blog_post, :content def set_blog_post_content post = Blog::Post.find(params[:value]) render :text => post.content end view <% @blog_post = @post%> <%= in_place_editor_field :blog_post, :content%> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
CompUser wrote: Have you checked in your log files to see if any kind of error is being thrown? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hmm you''re right, get this error: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): I know i saw this error on other side''s and found a patch (http:// dev.rubyonrails.org/attachment/ticket/10055/ 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 Nantz <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> CompUser wrote: > > Have you checked in your log files to see if any kind of error is being > thrown? > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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!! grtz On 7 okt, 09:56, CompUser <timvandelangkr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hmm you''re right, get this error: > > ActionController::InvalidAuthenticityToken > (ActionController::InvalidAuthenticityToken): > > I know i saw this error on other side''s and found a patch (http:// > dev.rubyonrails.org/attachment/ticket/10055/ > 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 Nantz <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > CompUser wrote: > > > Have you checked in your log files to see if any kind of error is being > > thrown? > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---