Skip to content

Instantly share code, notes, and snippets.

@joemsak
Created September 18, 2009 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemsak/189156 to your computer and use it in GitHub Desktop.
Save joemsak/189156 to your computer and use it in GitHub Desktop.
def create
@gallery = Gallery.find(params[:gallery_id])
@photo = @gallery.photos.new(:swfupload_file => params[:Filedata])
if @photo.save
render :partial => 'image', :object => @photo
else
render :text => "error"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment