Why do you need jQuery? Why not just use the conditional you already have?
This code sucks, you could probably clean it up (move it into helper or something), but you'll get the idea.
- def display?; @user.errors.any? ? "block;" : "none;"; end;
#request-invite.modal{:style => "display: " + display? }