Uploading image(very urgent)

hi im anas…
im new(means im doing my acadamic project in ror)in ror …
i have an problem in uploading images(to store in the file system).
im using ‘fileutils’ lib…
plzzz… any one help me to store images in file system…
plzzz… explain in detail with all(model,view,control) for uploading
image using fileutils only…
thanq

you can read this:

http://teapoci.blogspot.com/2008/04/create-photo-gallery-less-than-10.html

regard,

Reinhart
http://teapoci.blogspot.com

Visit Indonesia 2008 wrote:

you can read this:

http://teapoci.blogspot.com/2008/04/create-photo-gallery-less-than-10.html

Or you can use AttachmentFu.

Class Attachment

has_attachment

validates_as_attachment

end

From the doc:

Example in controller:
def create
@attachable_file = AttachmentMetadataModel.new(params[:attachable])
if @attachable_file.save
flash[:notice] = ‘Attachment was successfully created.’
redirect_to attachable_url(@attachable_file)
else
render :action => :new
end
end

And you’re done.

http://svn.techno-weenie.net/projects/plugins/attachment_fu/README

Yeah, I would definitely recommend attachment_fu…

Cheers, Sazima

On Apr 19, 3:36 pm, Daniel W. [email protected]

Anas Ali wrote:

hi im anas…
im new(means im doing my acadamic project in ror)in ror …
i have an problem in uploading images(to store in the file system).
im using ‘fileutils’ lib…
plzzz… any one help me to store images in file system…
plzzz… explain in detail with all(model,view,control) for uploading
image using fileutils only…
thanq

Also Fleximage rails plugin makes this easym as ong as you have RMagick
installed.

http://github.com/Squeegy/fleximage/wikis

The code to get it running is pretty dang minimal.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs