<form action="/decide_start_session" method="get">
<input type="checkbox" name = "subject" value = "NetPresentValue" checked> Net Present Value
<input type="checkbox" name = "subject" value = "FamaFrench" checked> Fama French
<%= submit_tag("Start session", class: "btn btn-success") %>
</form>
puts params[:subject]
I have the first part in my view and the second line in my controller in my Rails app. If a user selects both checkboxes, the Rails console only returns the last item checked instead of all of them together. Any idea on how I can fix this (show all the checkboxes in the console)?