#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    85
    Rep Power
    10

    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. #2
  3. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1051
    The text should go between the textarea tags, not in the value attribute.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    85
    Rep Power
    10

    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

IMN logo majestic logo threadwatch logo seochat tools logo