OK. This is embarrassing.
I need to programatically set the value of a field on a form (I get
the id of the last invoice created and want to populate a hidden
field on the line_items form with that number so that the line items
know to which invoice they belong). Its easy in HTML but I am using
the rails text_field method. I guessed at setting :value but it does
not seem to do anything.
Well, I’ve looked for a good hour now and can find no record of it.
Please would someone help me.
PS. If it was in the api docs or the Agile web development book,
please feel free to send abuse with your answer. I’ll take it in