title: Render specific model id?
body: <p>I'm looking to take an example of a model (in this case, <em>Book</em>), and render a specific instance of that model by ID.</p>
  
  <p>The model is just a basic scaffold generated model - usual <code>show</code> method;</p>
  
  <pre><code>def show
      @book = Book.find(params[:id])
  
      respond_to do |format|
        format.html # show.html.erb
        format.json { render json: @book }
      end
    end
  </code></pre>
  
  <p>I'm looking to embed an instance of this inside of the view:</p>
  
  <pre><code>&lt;div class="tab-pane active" id="tab1"&gt;
      &lt;%= render :template "books/show", :book =&gt; 1 %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>There's something I'm doing wrong here, I can tell. But I don't know where to proceed from here! Any help is really appreciated. I know I need to somehow pass the book ID, but I can't figure out how to do that. Thanks!</p>