I've read many related questions here, but I still don't understand how to do the following: I have a "Country" model and I'd like to create a select form that will allow users to select any of the existing countries in the model, and be redirected to that country's "show" page.
My collection_select logic is:
<%= collection_select(:country, :country_id, Country.all, :id, :name, prompt: 'Select a Country') %>
<%= submit_tag "Find!", redirect_to (country.params[:id])%>
Any help would be appreciated!