carrierwave
rails + carrierwave file uploading form arbitrary file fields count
I need to have from 1 to 15 file fields for photos. Now I\'m uploading files with carrierwave gem building every photo object in my controller like: N.times { @car.photos.build } and then provide N f[详细]
2023-04-13 08:56 分类:问答Rails - WIndows 7 carrierwave, minimagick resize not working
I tried to set up for uploading photos with my rails app.However, the carrierwave uploader does not resize the photos being uploaded.When I do not call the resize_to_fill function, the photos are uplo[详细]
2023-04-13 01:14 分类:问答Passing a parameter to the uploader / accessing a model's attribute from within the uploader / letting the user pick the thumbnail size
I would like to crop an image to the size the user has selected from a list (e.g. 100x100px, 200x200px,...)[详细]
2023-04-12 04:02 分类:问答Rails 3 - Attaching polymorphic image model as different image types per each model, what am i doing wrong?
i keep getting an ActiveRecord::UnknownAttributeError: unknown attribute: image开发者_C百科able_id[详细]
2023-04-11 18:08 分类:问答Sinatra/Carrierwave: how to update a record while using an existing image?
My super-simple Sinatra app is a list of notes, and each note has an attached image. I\'ve got a \'put\' route set up that lets me update notes, but unless I re-upload the image, I lose it (note.imag[详细]
2023-04-11 16:20 分类:问答I'm using Carrierwave to upload an XML file. The XML is uploaded, and looks OK but is not being read
I\'m not sure if this is a problem with Carrierwave, or if I\'m doing something wrong.But my origin开发者_Python百科al file which is able to be read by my parser looks like:[详细]
2023-04-11 15:07 分类:问答use base64 image with Carrierwave
I want to perform the similar thing as from base64 photo and paperclip -Rails, but 开发者_如何学Cwith Carrierwave.[详细]
2023-04-10 04:17 分类:问答Carrierwave image upload in nested form still creating record even no file is specified
I have a Carrierwave image upload in a nested simple_form which works (sort of) unless the user does not specify a file, in which case a blank Picture object is created unless there was a previously e[详细]
2023-04-10 04:07 分类:问答Rails 3 test fixtures with carrierwave?
I\'m working on upgrading from attachment_fu to carrierwave, since attachment_fu is broken in rails 3.[详细]
2023-04-08 14:08 分类:问答Validate image size in carrierwave uploader
All uploads s开发者_开发百科hould be at least 150x150 pixels. How to validate it with Carrierwave?Why not to use MiniMagick?Modified DelPiero\'s answer:[详细]
2023-04-07 15:15 分类:问答