SyntaxFix
Write A Post
Hire A Developer
Questions
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] } %>