On further look investigation I haven't really solved the problem. The text
is erased after I submit the form but it still remains when I refresh the
page.

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of tyliong
Sent: Saturday, November 01, 2008 2:08 AM
To: Ruby on Rails: Talk
Subject: [Rails] Re: form.text_area, how do you empty its contents?


Never mind i got it
@comment.body = "" before the page.replace

On Nov 1, 1:34 am, tyliong <[EMAIL PROTECTED]> wrote:
> Hi, after i click submit and refresh the parital(with
> page.replace_html) with the remote_form_for, the <%=
> form.text_area :body, :rows => 10, :cols => 40 %> still contains the
> previous text. how do i totally remove the text inside of it?


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to