Skip to content

Instantly share code, notes, and snippets.

@Schwad
Created September 5, 2017 13:23
Show Gist options
  • Save Schwad/5c8d5c6bda0e3008c23d9cb6c62f2045 to your computer and use it in GitHub Desktop.
Save Schwad/5c8d5c6bda0e3008c23d9cb6c62f2045 to your computer and use it in GitHub Desktop.
def double_render_error
@books = Book.all
render 'index'
render 'show'
end
#=> AbstractController::DoubleRenderError - Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment