Displaying 3 results from an estimated 3 matches for "options_for_collection_select".
2006 Oct 11
0
options_for_collection_select
Do I have to use this helper if I''m filling a list from a table ?
Is there a way to use select_tag ?
Stuart
--
http://en.wikipedia.org/wiki/Dark_ambient
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 Jun 10
4
collection_select question
...tionfilter, :producer_id, Producer.find(:all),
:id, :name, {:include_blank => true}, {:selected_value =>
@initial_selection})
which likewise doesn''t work. I''ve verified that @initial_selection is
returning the correct value.
The docs say that collection_select uses the
options_for_collection_select, which has :selected_value as one of its
options, so it seems the above should work, but I''m obviously missing
something.
--
Posted via http://www.ruby-forum.com/.
2007 Nov 30
0
cross sell products - Options_from_collection_select ?
...t.cross_sell_products.each do |cross_sell_product|%>
<%= link_to cross_sell_product.name, :action => ''product'',
:id => cross_sell_product.id
%><br />
<% end %>
------------> My Question is
how do we create an options_for_collection_select ?in the -form.html
<!-- cross sells -->
<label for "product_crosssells"> Cross Sell</label>
<select name=''products[cross_sell_products][]'' multiple=''multiple''>
<%= @products = Product.find(:all, :order => "name...