I am trying to use a variable sent through the submit form.
Look for the hidden area on the line: 2
After the kill, please submit the call taken in my controller:
def index t = tree.find (param [[tree_id]). ...
tree = tree (Param [[tree_ID])
"ActiveRecord :: RecordNotFound "/ could not import / tree without id
How can I fix this so that the @tree variable controller referenced in the form can be passed?
You can inspect the params found, but I think you have [ Import] then ...
def index @ t = tree.fid (param [[import] [: tree_id]) ... ... end
No comments:
Post a Comment