I have following doubts and have spent many days trying to crack them
without luck, please help :
- I have a form with pure text fields at the top and a table with
multiple rows with data derived from many objets of a class below that.
I want to provide a link in each row which takes me to a new form. I
can pass the id of each row via the link_to tag and read the value
successfully in the next form.
But how do I include the value of the text boxes in each row ?
Can I send an object with several attibutes in the link-to tag, say
the object name is ‘book’, then how do i read it as an object in the
next form, params[:book] didnot work.
Is there a way to send a hash via the link_to tag ?