Rafael Cardoso
2006-Jul-02 02:46 UTC
[Rails] Problem with select, options_from_collection_for_select for selected items
I''m having problems to make the selected works, i''ve been trying with select and options_from_collection_for_select. I''ve tried, :selected, :selected_key, :selected_value, and all i can got from the doc page ( http://rubyonrails.org/api/classes/ActionView/Helpers/FormOptionsHelper.html#M000399 ) and from wiki. Code: select(''informacao'', ''tipo_analise_id'', options, :selected => ''2'', :include_blank => true) Thanks, Rafael MVC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060702/c5af78cc/attachment.html