How to render partial on the same page after clicking on link_to with AJAX
I have a list of customers. Every customer has a link, which links to the customers page and displays his data. 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. My code for the Customers list: <h1>Listing Customers</h1> <table> <thead> <tr> <th>Name</th> <th colspan="3">Actions</th> </tr> </thead> <tbody> <% @customers.each do |customer| %> <tr> <td><%= customer.name %></td> <td><%= link_to 'Show', customer %></td> <td><%= link_to 'Edit', edit