Skip to content

Instantly share code, notes, and snippets.

@joemsak
Created April 22, 2009 04:06
Show Gist options
  • Save joemsak/99574 to your computer and use it in GitHub Desktop.
Save joemsak/99574 to your computer and use it in GitHub Desktop.
def create
@work = Work.new(:swfupload_file => params[:Filedata])
if @work.save
render :partial => 'work', :object => @work
else
render :text => "error"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment