This should do it:
<%= f.select :project_id, @project_select, :selected => params[:pid] %>
More Related Contents:
- how to permit an array with strong parameters
- Access current_user in model
- Begin, Rescue and Ensure in Ruby?
- ActiveRecord OR query Hash notation
- Rails DB Migration – How To Drop a Table?
- How to rollback a specific migration?
- Devise form within a different controller
- Rails layouts per action?
- In Rails, how do you render JSON using a view?
- No secret option provided to Rack::Session::Cookie warning?
- ruby on rails f.select options with custom attributes
- Profile model for Devise users?
- Rails 4: organize rails models in sub path without namespacing models?
- How do I change the default “www.example.com” domain for testing in rails?
- Rails ActiveRecord: Find All Users Except Current User
- Rails how do I – export data with send_data then redirect_to a new page?
- gem install permission problem
- How to get a Date from date_select or select_date in Rails?
- New data not persisting to Rails array column on Postgres
- What is the preferred way to manage schema.rb in git?
- url encode equivalent in ruby on rails
- Using attr_accessor and attr_accessible on the same field
- Rails 3 autoload
- Storing Objects in a Session in Rails
- Store the day of the week and time?
- Looking for suggestions for building a secure REST API within Ruby on Rails
- Fall back to default language if translation missing
- Installing Ruby on Rails – Mac OS Lion
- Sass import error in Rails 3 app – “File to import not found or unreadable: compass”
- How to integrate a Wrap Bootstrap theme into an Rails application?