Displaying 1 result from an estimated 1 matches for "find_by_product_cod".
Did you mean:
find_by_product_code
2006 Feb 22
0
Need help getting value from text_field_with_autocomplete
...39;', :with =>
%q(''product[product_code]=$(''product_product_code'')''), :url => { :action =>
''addRow'' }, :position => :after) %>"</td>
</tr>
Here is the controller for addRow:
def addRow
@product = Product.find_by_product_code(params[:product][:product_code])
@completeRow = render_to_string(:partial => ''complete_row'')
end
Here is the complete_row partial
<td rowspan="2" align="center"><%= text_field("purchase_order_detail",
"quantity", "si...