Skip to content

Instantly share code, notes, and snippets.

@sjzabel
Created December 29, 2013 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjzabel/8167480 to your computer and use it in GitHub Desktop.
Save sjzabel/8167480 to your computer and use it in GitHub Desktop.
JSON shape of returned flash object
{
flash:{
msg: 'You do not have permission to that user'
,flashType: 'warn'
}
...
}
// or
{
flashes:[
{
msg: 'The user you requested does not exist'
,flashType: 'info'
},
...
]
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment