title: RoR - Don't destroy object, just flag as hidden
body: <p>I have a simple model in RoR and I would like to keep eveything people enter on the site. But I also want to be able to hide some content if the user click on "Remove".</p>
  
  <p>So I added a bolean attribute in my model called "displayed".</p>
  
  <p>I would like to know, what would be the best-practices-styled method.</p>
  
  <p>I guess I have to change the controller with something like :</p>
  
  <pre><code>def destroy
   @point = Point.find(params[:id])
   @point.displayed = false
   @point.save
  
  respond_to do |format|
    format.html { redirect_to points_url }
    format.json { head :no_content }
  end
  </code></pre>
  
  <p>But I am not sure it is clean. What would be the best way to do it.</p>
  
  <p>As you guess I am noobish with RoR. Chunks of code would be appreciated. </p>
  
  <p>Thank you</p>