title: Rails: display create form from one model into another model view
body: <p>Sorry if this is a stupid question, I am not a seasoned Rails developer.</p>
  
  <p>From what I understand, the Rails way of doing things is:</p>
  
  <ul>
  <li>Create a model.</li>
  <li>Create a controller for this model, with actions such as create, show, etc.</li>
  <li>Render these actions through a related view with a corresponding name, such as new.html.erb, show.html.erb, etc.</li>
  <li>Route the view to the desired URL with the router.</li>
  </ul>
  
  <p>What I don't understand though, is whether or not we can mix two models with each other.</p>
  
  <p>For instance, in our app, we have a User model, a Calendar model and a Post model.</p>
  
  <p>A user has many calendars and a calendar has many posts.</p>
  
  <p>And we need to allow people to:</p>
  
  <ul>
  <li>Create a new @calendar from their profile (users#show).</li>
  <li>Create a new @post from a calendar.</li>
  </ul>
  
  <p>The way we accomplished this was by:</p>
  
  <ul>
  <li>Creating a <code>_calendar_form.html.erb</code> form and include it into our user's <code>show.html.erb</code>.</li>
  <li>Creating a <code>_post_form.html.erb</code> form and include it into our calendar's <code>show.html.erb</code>.</li>
  </ul>
  
  <p>However, we are not sure this is the right / Rails way of doing things and feel like we may be breaking the MVC pattern.</p>
  
  <p>If that is the case, is there a solution to achieve a similar result, but with a more conventional approach?</p>