I have a user controller with the following code.
# POST /users
@user = User.new(user_params)
redirect_to '/', notice: 'Thank you for signing up for Beta.'
redirect_to '/', notice: 'That was an invalid or duplicate email address. Please try again!'
How can I make these pop up with jquery?