Rails select helper - Default selected value, how?

Posted by totocaster on Stack Overflow See other posts from Stack Overflow or by totocaster
Published on 2009-03-08T11:49:42Z Indexed on 2010/03/13 13:25 UTC
Read the original article Hit count: 198

Here a code I'm using now.

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

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

© Stack Overflow or respective owner

Related posts about web-development

Related posts about ruby-on-rails