current code for the ajax call:
@return = { :error => true, :response => @invitation.errors.full_messages.join("<br />") }
the errors now appear as
Email can't be blank
Email is invalid
how can i add a div before the error messages and a p tag in each line?
so it would become
<div>
<p>Email can't be blank</p>
<p>Email is invalid</p>
</div>
Something like this could work for you: