Displaying 1 result from an estimated 1 matches for "find_all_by_tracking_id".
2006 Apr 18
6
Help with Forms
...;
http://api.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html.
My question is: How do I find all the records in the asset table that
have the tracking_id that was entered in the text field?
In my controller Im doing this:
params[:asset].each_value do |prod|
records = Asset.find_all_by_tracking_id(prod)
end
However, this gives the error:
----------------------------------------------------------------------------
RuntimeError: ERROR C22P02 Minvalid input syntax for integer: "---
- tracking_id
- "2202045"" Fnumutils.c L84 Rpg_atoi: SELECT * FROM asset WHERE
(asset.&...