Shandy Nantz wrote:
>> render :text => "This is new line"
>
> You could say:
>
> render :inline => "<%= text_field 'test', 'name' %>"
>
> This would just re-populate the div you are trying to update with the
> above helper code.
>
> -S
Hi,
Thanks for all the inputs. The following line works fine
page.insert_html :bottom,'text_area', "Hello world"
That raises one more question
I want the text in the text_area to look like
-----------
Hello world1
Hello world2
hello world3
------------
So to get this if I add
page.insert_html :bottom,'text_area', "Hello world\r\n"
The line breaks don't display in the text area ... how do I get that
working?
Thanks,
Sudhindra
--
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 [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
-~----------~----~----~----~------~----~------~--~---