Skip to content

Instantly share code, notes, and snippets.

@lukaszsagol
Created September 18, 2014 16:01
Show Gist options
  • Save lukaszsagol/c87d226aaee53290da6b to your computer and use it in GitHub Desktop.
Save lukaszsagol/c87d226aaee53290da6b to your computer and use it in GitHub Desktop.
def create
create! do |success, failure|
success.html { flash[:notice] = nil; redirect_to whatever }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment