I'm rendering a partial and rendering it without a layout
format.html { render :layout => false }
All values are displayed correctly, and are editable with best_in_place as expected. However, nil values are showing empty and thus cannot be edited (i.e. no "-" is shown). Trying to specifically use the :nil option doesn't make a difference.
While rendering a layout it shows correctly, however I must not use the layout. Any suggestions?
Example code: Controller
def index
....
@user = User.find(params[:user_id])
respond_to do |format|
format.html { render :layout => false }
format.json { render json: @user }
end
end
View
<td class='centered-cell span2'><%= best_in_place @user, :nick_name, :inner_class => 'span1' %></td>