Skip to content

Instantly share code, notes, and snippets.

@jnwelzel
Last active December 17, 2015 02:39
Show Gist options
  • Save jnwelzel/5537402 to your computer and use it in GitHub Desktop.
Save jnwelzel/5537402 to your computer and use it in GitHub Desktop.
# 1. not working
redirect_to contact_path(@message), :flash => { :error => "Captcha error! The image code you informed is incorrect."}
# 2. not working
flash[:error] = "Captcha error! The image code you informed is incorrect."
redirect_to contact_path(@message)
# 3. WORKING
flash[:error] = "Captcha error! The image code you informed is incorrect."
render "new"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment