search for: client_company_id

Displaying 2 results from an estimated 2 matches for "client_company_id".

2006 May 23
0
RJS replace adding multiple inputs
...'m doing the following: Assume my form has the following field already <%= hidden_field(''client'', ''company_id'') $> So I have a bunch of companies in a list with link_to_remote tags to action select_company.rjs inside which I want: page.replace "client_company_id", hidden_field("client", "company_id", : value => @company.id But when I do this, it works but it adds an additional blank <input> tag: <input> <input id="client_company_id", name="client[company_id]" value="4" type=&qu...
2005 Oct 26
1
Re: collection_select question about selected_value
Paul Welty wrote: > collection_select(:client, :company_id, @companies, :id, :name, { > :selected_value => 2 , :prompt => "Please select a company..." }) > > Returns a functioning SELECT element, but it won¹t select the second item. > (BTW, using the selected_value as a string doesn¹t work either) > > Am I doing something wrong, or is this impossible? >