title: How can I get best_in_place's respond_with_bip working?
body: <p>I am having trouble with getting <code>best_in_place</code> fully functional. The problem is that once I edit a field, in order to be able to click on and edit that field again I need to refresh the page. I may be wrong, but I have a feeling this has something to do with <code>respond_with_bip</code> throwing an <code>undefined method</code> error. I think this has something to do with not putting the <code>best_in_place</code> assets in the right places. Currently I have the following which works to update 'constant'. But again it's throwing an error when it hits <code>respond_with_bip</code>:</p>
  
  <p><strong>Show:</strong></p>
  
  <pre><code>&lt;%= best_in_place constant, :description %&gt;
  </code></pre>
  
  <p><strong>Update action of controller:</strong></p>
  
  <pre><code>def update
    @constant = Constant.find(params[:id])
  
    respond_to do |format|
      if @constant.update_attributes(params[:constant])
        format.html { 
          flash[:success] = "Constant Updated"
          redirect_to settings_path
        }
        format.json { 
          respond_with_bip(@constant) 
        }
      else
        format.html { 
          flash[:error] = "Constant Update Failed"
          @title = "Constants"
          @constant = Constant.new
          @partial_path = "settings/constants"
          redirect_to settings_path
        }
        format.json { respond_with_bip(@constant) }
      end
    end
  end
  </code></pre>
  
  <p>In terms of the folder from <code>best_in_place</code>'s github page, I put the entire <code>lib/best_in_place</code> folder in my app's <code>app/assets</code> folder. The javascript files are in <code>app/assets/javascripts</code> (These are working so not worried about it). And I put the <code>lib/assets/best_in_place.rb</code> file in the <code>config/initializers</code> folder. </p>
  
  <p>What am I doing wrong?</p>