Displaying 2 results from an estimated 2 matches for "partner_name".
2006 Mar 19
3
String keys in hash
...//address.com?id=dwNKiItvcyrQ5sycnIhmJablDfXsc9tshaGIVyNIei7.e7&some_other_parameters
In a controller, I''ve created a hash where the keys are the ids:
@codes = {
''dwNKiItvcyrQ5sycnIhmJablDfXsc9tshaGIVyNIei7.e7'' =>
{:partner_id => 0,
:partner_name => ''sth'',
:page_number => 1},
...
}
Then i do:
poll_id = ''"'' + params[''id''] + ''"''
The problem is, @codes[poll_id] returns nil.
Otherwise, @codes["dwNKiItvcyrQ5sycnIhmJablDfXsc...
2006 Feb 24
1
Autocompleter Problems
...CALLED");
this.baseInitialize(element, update, options);
this.options.array = array;
},
This does not get called at all. My code in my view is as follows:
<%= text_field_with_auto_complete(:partner, :name,{:size=>10}) %>
which produces the javascript:
//<![CDATA[
var partner_name_auto_completer = new Ajax.Autocompleter(''partner_name'',
''partner_name_auto_complete'', ''/partners/auto_complete_for_partner_name'',
{})
//]]>
And in my controller:
class PartnersController < ApplicationController
layout "default&quo...