Displaying 1 result from an estimated 1 matches for "auto_complete_responder_for_products".
2006 Jan 10
0
Customizing autocomplete to update more than one value upon vaule select
..." id="sell_price_#{@counter}"
size="10"></td>
</tr>
<tr>
<td align="center"><input type="text" id="weight2_#{@counter}"
size="10"></td>
controller:
def auto_complete_for_product_product_code
auto_complete_responder_for_products params[:product][:product_code]
end
...
private
def auto_complete_responder_for_products(value)
@products = Product.find(:all, :conditions => [''product_code LIKE ?'',
''%'' + params[:product][:product_code] + ''%''] )
render :partial =&g...