Displaying 1 result from an estimated 1 matches for "galleryimage".
Did you mean:
gallery_image
2010 Dec 10
0
Encoding issues when uploading files
.../ruby/1.9.1/webrick/httpserver.rb:70:in `run''
/usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in
start_thread''
This is obviously just a silly example. But my real application makes
use of the paperclip gem to attach gallery images to documents.
# encoding: utf-8
class GalleryImageController < ApplicationController
def create
@image = GalleryImage.create(params[:gallery_image])
redirect_to ''/'' + @image.document.url
end
end
# encoding: utf-8
class GalleryImage < ActiveRecord::Base
belongs_to :document
has_attached_file :image, :s...