Skip to content

Instantly share code, notes, and snippets.

@kylefox kylefox/gist:246747
Created Dec 1, 2009

Embed
What would you like to do?
def create
@upload = FileUpload.new(:site_id => @current_site.id, :upload => params[:Filedata])
if @upload.save
render :partial => 'file_upload', :object => @upload
else
render :text => @upload.errors.join(", "), :status => :invalid
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.