Hi,
Does anyone know why if I use SuperInPlaceControls in partial, the
editing doesn''t work? I can start editing but when I click
''Ok'' the
application is saying "Saving...", however once it''s done it
doesn''t
display any value (not even the old one). Also, when I revisit the
page I get my old value to display and not the one I changed to. I''m
using HAML for my view.
This is what I have in my controller:
class FriendshipsController < BaseController
  in_place_edit_for :friendship, :friendship_notes
end
# This is what I have in my view:
  - @user_friendships.each do |friendship|
  =render :partial => "users/sidebar_user", :locals =>
{:friendship =>
friendship}
# This is what I have in my partial _sidebar_user.html.haml:
- @friendship = friendship
= in_place_text_field :friendship, :friendship_notes
Any thoughts what might be wrong? Does SuperInPlaceControls plugin
work well with partials?
Please help,
SS
-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.