Here is a piece of code I’m using now:

<%= f.select :project_id, @project_select %>

How to modify it to make its default value equal to to params[:pid] when page is loaded?

15 Answers
15

Leave a Reply

Your email address will not be published. Required fields are marked *