Displaying 4 results from an estimated 4 matches for "gallery_image".
Did you mean:
gallery_images
2006 Jul 20
1
file_column - assigning with an actual file rather than a multipart
Hi there,
I''m using the wonderful file_column and have struck an issue that
someone might have seen before.
My images already sit on the server. So, instead of passing a
multipart message I''m sending a file object.
Something like...
f = File.new("public/gallery_images/builder.png")
p = Product.find_first
p.image = f
p.save
On the save I recieve an error which I''ve pasted at the bottom of this mail.
A temporary image is created in the correct place so I''m almost there.
Any ideas? I haven''t heard of anyone doing this but file_col...
2010 Dec 10
0
Encoding issues when uploading files
...n `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, :styles => {:thumbnail => "250x200#"}
end
When user tries to upload a file with name conta...
2007 Mar 30
2
gallery issue...
Hi,
i''m new of both webgen and ruby, so maybe this can be a dumb question, but
i can''t recognize any solution by myself.
I use webgen 0.4.1 (the newest webgen .deb package).
I''m trying to make a test gallery, without succeeding in it.
i done (ehm, copied) the yeah.gallery file in the root directory:
1 title: Example Gallery
2 imagesPerPage: 32
3 images:
2006 May 11
4
modelling data to specify user access
Hello, this is my second Rails app, and the first one I did had simple
data mapping. This time I am building a site for a photographer, and
they want to upload photos, and create galleries that only certain
clients can log in and have access to. There will be multiple
galleries, and the access to them will vary depending on how the admin
assigns it to each client. There is also a porftolio