Skip to content

Instantly share code, notes, and snippets.

@thomasbiddle
Created December 5, 2012 20:17
Show Gist options
  • Save thomasbiddle/4219129 to your computer and use it in GitHub Desktop.
Save thomasbiddle/4219129 to your computer and use it in GitHub Desktop.
flash[:notice] = "Hey, you're not allowed in there!"
return redirect_to(
:controller => 'projects',
:action => 'index',
:notice_type => 'error'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment