search for: howtouseformoptionhelp

Displaying 5 results from an estimated 5 matches for "howtouseformoptionhelp".

2006 Jan 26
0
selecting from dynamic pop-up list populated by a table
I''ll try again... I am looking at this page...HowToUseFormOptionHelpers http://wiki.rubyonrails.org/rails/pages/HowtoUseFormOptionHelpers perhaps I should be using Ajax for this...I haven''t looked at Ajax yet. Have 2 tables - clients & case_managers I want the data from a column in case_managers to be the select list on a screen for adding/editing cl...
2005 Feb 13
5
Select Enumerated Values with FormOptionsHelper
...select should do exactly what I want, so I tried this: <%= select("division", "format", ["open", "womens", "coed"]) %> But that gets a "raised too few arguments" error. Based on this HOWTO: http://wiki.rubyonrails.com/rails/show/HowtoUseFormOptionHelpers I tried changing it to this: <%= select("division", "format", { "open" => "open", "womens" => "womens", "coed" => "coed" }) %> But I got the same error. Curiously, if I use the following: <%=...
2006 Apr 26
2
Multiple Select example?
I''ve been trying to sort out a multiple select dropdown but haven''t found any good examples - anyone know of any or perhaps could make a suggestion [see below] Model: 1. Task AR has_many users 2. User AR belongs_to task login/password attributes Controller: View: <%= collection_select("task", "users" , @users, "id", "login", {},
2005 Dec 15
3
Rails: Select and html forms
I''m close to getting this to work, but not quite there. I''m trying to implement a dropdown control, with the current choice selected. I have the following code in the view: 5 <select id="product_product_type" name="product[product_type]"> 6 <%= 7 types = ProductType.find(:all, :order => "product_type") 8
2006 Jun 10
4
collection_select question
How do I specify which option should be initially selected when using the collection_select command? I''ve tried: collection_select(:selectionfilter, :producer_id, Producer.find(:all), :id, :name, {:include_blank => true, :selected_value => @initial_selection}) However it doesn''t return the desired results (the option with the value of @initial_selection selected).