Wai Tsang
2007-Feb-06 22:23 UTC
Is it possible to save text from div fields to activerecord?
Hi, 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Kovacs
2007-Feb-06 22:29 UTC
Re: Is it possible to save text from div fields to activerecord?
How about a textarea? If you really need to you could update a hidden form field with the div data and them submit it but I sure wouldn''t want to go down that road On 2/6/07, Wai Tsang <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Hi, > > 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. > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Wai Tsang
2007-Feb-07 20:27 UTC
Re: Is it possible to save text from div fields to activerec
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---