I have a button that links to a details action
to show a list of records for a specific reporting_date
:
<%= link_to "DETAILS", opportunity_details_path(:reporting_date => date), class: "btn small-bright-button hidden-xs" %>
However, what I want to do now is to render that list below the button in a partial with ajax rather than reloading the whole page and go to the opportunity_details view.
I suppose my button should then contain a remote: true
:
<%= link_to "DETAILS", opportunity_details_path(:reporting_date => date), class: "btn small-bright-button hidden-xs", remote: true %>
That's were I'm stuck now.
How do I have to proceed?