# Why SuperInPlaceControls doesn't Save in partials?

**URL:** <https://www.ruby-forum.com/t/why-superinplacecontrols-doesnt-save-in-partials/190159>\
**Category:** Rails\
**Created:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/why-superinplacecontrols-doesnt-save-in-partials/190159 "2010-06-17T16:22:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@sss](https://www.ruby-forum.com/u/sss)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/why-superinplacecontrols-doesnt-save-in-partials/190159/1 "2010-06-17T16:22:04Z")

</div>

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
