title: How to render partial on the same page after clicking on link_to with AJAX
body: <p>I have a list of customers. Every customer has a link, which links to the customers page and displays his data.</p>
  
  <p>I want to link to partial rendered on the same page below the table of customers. On initializing the "page" with the table, a blank page with something like "select a customer" should be loaded.</p>
  
  <p>My code for the Customers list:</p>
  
  <pre><code>&lt;h1&gt;Listing Customers&lt;/h1&gt;
  
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Name&lt;/th&gt;
        &lt;th colspan="3"&gt;Actions&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
  
    &lt;tbody&gt;
      &lt;% @customers.each do |customer| %&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;%= customer.name %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Show', customer %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Edit', edit_customer_path(customer) %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= link_to 'Destroy', customer, method: :delete, data: { confirm: 'Are you sure?' } %&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;% end %&gt;
  
    &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;br&gt;
  
  &lt;%= link_to 'New Customer', new_customer_path, class: "button", id: "new_customer" %&gt;
  </code></pre>
  
  <p>My partial for displaying the customer:</p>
  
  <pre><code>&lt;p&gt;
    &lt;strong&gt;Name:&lt;/strong&gt;
    &lt;%= @customer.name %&gt;
    &lt;%= @customer.id %&gt;
  &lt;/p&gt;
  
  &lt;%= link_to 'Edit Customer', edit_customer_path(@customer) %&gt; |
  &lt;%= link_to 'Back', customers_path %&gt;
  </code></pre>
  
  <p>Can you help me with some ideas?</p>