Forum: Ruby on Rails Is it possible to save text from div fields to activerecord?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7c8f8b6eae4dd991e3a9065c68451361?d=identicon&s=25 Wai Tsang (sneptune)
on 2007-02-06 23:23

Right now, my application would generate text to a DIV field in the view
using Ajax.  Is there anyway to store the data into a record?  It would
be possible with a text field, but it is very awkward if text field is
used instead of DIV.
361ba1bcc1d2c5a8885dd093dbb96bb6?d=identicon&s=25 Michael Kovacs (Guest)
on 2007-02-06 23:30
(Received via mailing list)
How about a textarea?

If you really need to you could update a hidden form field with the div
and them submit it but I sure wouldn't want to go down that road
7c8f8b6eae4dd991e3a9065c68451361?d=identicon&s=25 Wai Tsang (sneptune)
on 2007-02-07 21:27
A text field looks too ugly and I don't know how I could send data to
both text field and div simultaneously.  In the end, I changed the logic
of the program so that the text generated will be saved in the active
record, the view would have to look into the record for the text.
Thanks anyway for the suggestion though.
This topic is locked and can not be replied to.