just a simple question that seems unanswered on RoR books, I just
skimmed 4 of them. I've a Contact model and I've a Note model. Now I
want a link on the page that shows the contact enabling the user to add
a new note for that contact.
Now on the contact page I want to place an 'add note'. I want the user
to write the note on a separate page. How can I pass the ID of the
contact to the page? Where should I place this ID in the form for the
note? (a hidden field?, is there an helper for this?) How should I write
the action to store this note, I mean how can I distinguish the note ID
from the contact ID?
At the end I've a great doubt, am I completely wrong and should I change
the way to develop in RoR? This last question is even more important so
if the right way to do what I'm asking is different please tell me.