Skip to content

Instantly share code, notes, and snippets.

@veezus
Created September 4, 2008 20:51
Show Gist options
  • Save veezus/8874 to your computer and use it in GitHub Desktop.
Save veezus/8874 to your computer and use it in GitHub Desktop.
def new_resource
resource = resource_service.new(params[resource_name])
resource.user = current_user
resource
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment