
June 30th, 2006, 02:02 PM
|
 |
Contributing User
|
|
Join Date: Nov 2004
Posts: 85
Time spent in forums: 21 h 10 m
Reputation Power: 9
|
|
|
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 %>
|