Forum: Ruby on Rails Rails Partial renders three times

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F7a7a3ff7412e5cc4be7afc6cdf8dfeb?d=identicon&s=25 Chris Kuffo (chriskuffo)
on 2014-01-22 22:19
I have a weird situation.

In my users controller I have an if else statement that renders a
partial (i created for errors) based on if my sign up form passes
validation. For instance if someone forgets to put in their name or
enter an email address the message will appear at the top of the form.
Everything was working correctly up until i decided i would rather my
signup form appear on my home page and i would display it as a partial.
Now that the form is in a partial i still receive the validation error
but it shows three times instead of just once. When the sign up form was
on its on page it only displayed once. Why would rails render the
partial I created to show errors three times just because i made the
sign up into a partial?

Any help would be greatly appreciated.
Arvind Vyas (Guest)
on 2014-01-23 03:46
(Received via mailing list)
Hi if you can share your code then can see the problem , but please
how you are showing error messages , may be you have  defined in two
This topic is locked and can not be replied to.