Skip to content

Instantly share code, notes, and snippets.

@hammerdr
Created March 4, 2011 06:31
Show Gist options
  • Save hammerdr/854264 to your computer and use it in GitHub Desktop.
Save hammerdr/854264 to your computer and use it in GitHub Desktop.
def create
@receipt = Receipt.new(
... (several params here)
:store => Store.find_or_create_by_name(params[:receipt][:store_name])
... (more fucking parameters here))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment