Skip to content

Instantly share code, notes, and snippets.

@mowat27
Created June 29, 2012 17:00
Show Gist options
  • Save mowat27/3019221 to your computer and use it in GitHub Desktop.
Save mowat27/3019221 to your computer and use it in GitHub Desktop.
Resource-driven framework thoughts
resource organisation do
responds_to do
get new {
success: -> {render "a page"},
error: (reason) -> {redirect_to some_error(reason)}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment