title: Using Best_in_Place to edit attributes
body: <p>I am using the Best_in_Place gem to make areas on my site in place editable. I have two models: Student and Education, with the relationship being that each Student has_many Educations. I have the Best_in_place functionality working when editing attributes that are directly in the Student model, such as </p>
  
  <pre><code>&lt;%=best_in_place @student, :name =&gt;
  </code></pre>
  
  <p>However, I can't get it to update the attributes of an education.. with a line like </p>
  
  <pre><code>&lt;%=best_in_place @education, :college =&gt;
  </code></pre>
  
  <p>in the view of students/show, 
  I get the error <br>
  Started PUT "/educations" for 127.0.0.1 at 2012-03-25 13:06:57 -0400</p>
  
  <p>ActionController::RoutingError (No route matches [PUT] "/educations")</p>
  
  <p>and not only does it not work, the editable spot disappears completely. I can't figure out what's causing the problem, everything seems to be the same for both models/controllers. My routes are very simple:</p>
  
  <pre><code>resources :students
  resources :educations
  root :to =&gt; 'pages#home'
  devise_for :students
  </code></pre>
  
  <p>as are my controllers:</p>
  
  <pre><code>def update
  @student = Student.find(params[:id])
  
  respond_to do |format|
    if @student.update_attributes(params[:student])
      format.html { redirect_to @student, notice: 'Student was successfully updated.' }
      format.json { head :no_content }
    else
      format.html { render action: "edit" }
      format.json { render json: @student.errors, status: :unprocessable_entity }
    end
  end
  end
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>def update
  @education = Education.find(params[:id])
  respond_to do |format|
    if @education.update_attributes(params[:education])
      format.html { redirect_to @education, notice: 'Education was successfully updated.' }
      format.json { head :no_content }
    else
      format.html { render action: "edit" }
      format.json { render json: @education.errors, status: :unprocessable_entity }
    end
   end
  end
  </code></pre>
  
  <p>If I rake routes, I get:</p>
  
  <pre><code>educations GET    /educations(.:format)               educations#index
                            POST   /educations(.:format)               educations#create
              new_education GET    /educations/new(.:format)           educations#new
             edit_education GET    /educations/:id/edit(.:format)      educations#edit
                  education GET    /educations/:id(.:format)           educations#show
                            PUT    /educations/:id(.:format)           educations#update
                            DELETE /educations/:id(.:format)           educations#destroy
  students GET    /students(.:format)                 students#index
                            POST   /students(.:format)                 students#create
                new_student GET    /students/new(.:format)             students#new
               edit_student GET    /students/:id/edit(.:format)        students#edit
                    student GET    /students/:id(.:format)             students#show
                            PUT    /students/:id(.:format)             students#update
                            DELETE /students/:id(.:format)             students#destroy
  </code></pre>
  
  <p>Any pointers would be a huge help.</p>