title: In rails, what is best practice for having_many items and having_one special item
body: <p>In a rails application I have the following setup:</p>
  
  <p>Projects has_many Pages.
  Pages belong_to a Project.</p>
  
  <p>Pages are created and edited using nested attributes on the Projects controller.</p>
  
  <p>All editing is done using best_in_place where possible.</p>
  
  <p>I now want to add the ability to have one default page for each project. After a long time of trying things, I came up with the solution of adding startpage_id to Projects, and adding </p>
  
  <pre><code>    belongs_to :startpage, class_name: "Page"
  </code></pre>
  
  <p>to the project model, since has_one was not working out. This seems unintuitive and I get the feeling that I am doing something wrong.</p>
  
  <p>What would be the best practice in such a situation?</p>