|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
ROR - Display value in <textarea>
Hi,
I'm returning queried DB values in a form for editing. I can't get Ruby to display the value in a <textarea>! The value displays fine in a table row, or in a text box, but the textarea doesn't work. Anyone know if there is something special that the textarea needs? (This query only returns one row BTW)Thanks!! Code:
<% @edit.each do |cause| %> <table border="0"> <tr> <td nowrap align="right">PRIMARY(a):</td> <td colspan="2"><textarea wrap name="cause_texta" value="<%= cause.cause_texta %>" rows="6" cols="70"></textarea> </td> </tr> <% end %> |
|
#2
|
||||
|
||||
|
The text should go between the textarea tags, not in the value attribute.
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#3
|
||||
|
||||
|
Duh?
OMG - now I KNOW I'm burned out on Ruby!! Sheesh, I've only been coding HTML for what - 6 years?? What a dumba$$ -- I need a vacation...
Thank you O mighty Penguin! ~Snow |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > ROR - Display value in <textarea> |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|