Forum: Ruby on Rails Rails Partial renders three times

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.
778377fd64568f1a23968400a7477306?d=identicon&s=25 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
check
how you are showing error messages , may be you have  defined in two
places
.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.