I found that the validation error is coming for f.label as well.
Why is this happening? if i remove f.label and put not text without
using label tag, it is only coming once for text input.

Anybody there...
On Jan 12, 12:33 pm, venkata reddy wrote:
say for instance,
i have avalidationon
validates first_name, :presence => true

----------------------
First Name:   can't be blank   |                      |   can't be
blank
----------------------

:) so like above, theerrormessage coming twice beside the input
field, if thevalidationfails.

On Jan 11, 7:58 pm, Tim Shaffer wrote:






What does your view look like? Do you have anyerrormessage related code
in there?
What does the output HTML look like? Is theerrormessage repeated in the
HTML?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 6 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 11, '12 at 7:13a
activeSep 2, '14 at 12:12a
posts6
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2021 Grokbase