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
This should work for you. It just passes {:value => params[:pid] } to the html_options variable.
{:value => params[:pid] }
<%= f.select :project_id, @project_select, {}, {:value => params[:pid] } %>