Hi, help me in my problem plz.

I have a following code:

<%= error_message_on "guestbook", "text" %>
<%= f.label :text, 'Text:' %>
<%= f.text_area :text %>

After validation i get HTML:

<div class="formError">Error.</div>
<div class="fieldWithErrors"><label
for="guestbook_text">Text:</label></div>
<div class="fieldWithErrors">
  <textarea id="guestbook_text" name="guestbook[text]"></textarea>
</div>

How i can get this:

<div class="fieldWithErrors">
  <div class="formError">Error.</div>
  <label for="guestbook_text">Text:</label>
  <textarea id="guestbook_text" name="guestbook[text]"></textarea>
</div>
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to