similar to: paper clip plugin validation fails

Displaying 20 results from an estimated 300 matches similar to: "paper clip plugin validation fails"

2006 Feb 28
1
ArgumentError (string contains null byte) -- file upload problem
Hi, Controller code: if params[:main_image] image = Image.new image.blob = params[:main_image].read @product.main_image.destroy if @product.main_image @product.main_image = image end When I try to display the image using send_data, I get the following error: ArgumentError (string contains null byte):
2010 Mar 17
3
Associating a default paperclip image from a different model
Here''s some code, this is my NewsItem model as you can see... class NewsItem < ActiveRecord::Base belongs_to :country has_attached_file :image, :styles => { :original => ''57x57'' }, :default_url => ''/images/football.png'' # has_attached_file :image, # :styles => { :original => ''57x57'' },
2012 Aug 18
2
Paperclip images are not stored in my directory
It is my User.rb model, My images are not stored in my assets directory.. has_attached_file :photo, :styles => { :small => "100x100#", :large => "500x500>", :thumb => "60x60>" }, :url => "/assets/users/:id/:style/:basename.:extension", :path =>
2006 Apr 10
3
File Upload Problems
following the instructions at http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles, I am able to upload to an explicit and existing directory (i.e. c:\ror\app\public\images\photo.jpg). However, when I try to upload to a folder that does not exist, say, c:\ror\app\public\image\newfolder\photo.jpg, I get the following error: Errno::ENOENT in Images#create No such file or directory -
2007 Apr 19
2
invalid geometry string in change_geometry
I get the following error at the browser: ArgumentError in ImagesController#upload invalid geometry string `110×'' ... for the call to change_geometry with an explicit size (''110x'') as the geometry string: def make_thumb (the_img) require ''RMagick'' size = "110x" debugger if ENV[''RAILS_ENV''] ==
2014 Feb 18
0
How to Test Multimodel Paperclip attachments?
I'm using Rspec and FactoryGirl to create specs for multimodel paperclip attachments. From searching other questions, it seems like a single image attachment is more common. Car.rb class Car < ActiveRecord::Base has_many :uploads, dependent: :destroy validates :uploads, presence: { message: 'You must upload at least one image' }
2006 Apr 20
2
Image Display Question
Hello there, I have something odd happening to my image tags when displaying an image. Here''s what my ''<img src>'' tags are looking like: <img alt="2-thumb" src="/images/public/uploaded_images/2-thumb.jpg?" /> Notice the question mark at the end of the string. I have no idea where this coming from. Here are the important parts of my
2010 Apr 01
2
paper clip plugin error
coming this error in my paper clilp plugin m getting this error * Photo C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ hrithik_roshan1,3756,1.jpg is not recognized by the ''identify'' command. * Photo C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ hrithik_roshan1,3756,1.jpg is not recognized by the ''identify'' command. * Photo C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/
2013 Oct 10
12
What's the best way to approach reading and parse large XLSX files?
Hello, I''m developing an app that basically, receives a 10MB or less XLSX files with +30000 rows or so, and another XLSX file with about 200rows, I have to read one row of the smallest file, look it up on the largest file and write data from both files to a new one. I just did a test reading a few rows from the largest file using ROO (Spreadsheet doesn''t support XSLX and
2011 Mar 17
1
Paperclip validates_attachment_content_type not working?
Hi, I''m using the paperclip gem to upload photos. I''m trying to use the content-type validator in my photo-model but it''s not working. Photo upload with just the file-size validator works. What could this be? Here''s my code: http://pastebin.com/1nGfgmtN Thanks, Mathew -- You received this message because you are subscribed to the Google Groups "Ruby on
2011 Jun 01
7
desperate, errors with file upload
hello, i implementing a file upload using paperclip plugin. i getting the following error [1] when uploading a file. I''m using the gems rails v2.3.8 and paperclip v2.1.6. the parameter hash looks like [2], the model like [3]. Interesting is that i get two different errors, on the localhost with webrick it says: Status: 500 Internal Server Error no marshal_dump is defined for class
2013 Apr 03
1
validates uniqueness scope allow_blank/allow_nil -> validation error
I have this in a model: class GenreBadge < ActiveRecord::Base belongs_to :game, counter_cache: :genre_badges_count, touch: true belongs_to :genre validates :game_id, uniqueness: {scope: :genre_id}, allow_blank: true end When I get one existing genre badge genre_badge = game.genre_badges.first genre_badge.game_id = nil genre_badge.save! It creates an validation exception:
2010 Feb 06
1
Why does smoothScatter clip when xlim and ylim increased?
Hi: Is there a way to get smoothScatter to not clip when I increase the xlim and ylim parameters? Consider the following example: set.seed(17) x1<-rnorm(100) x2<-rnorm(100) smoothScatter(x1,x2) #Now if I increase xlim and ylim notice that the plot seems to be clipped at the former xlim, and ylim boundaries: smoothScatter(x1,x2, xlim=c(-5,5), ylim=c(-5,5)) Thanks. Jen sessionInfo() R
2005 Sep 07
0
[fdo] Open Clip Art Library Release 0.17 Announcement :: www.openclipart.org
Sept 7, 2005 UTC - Release 0.17 of the Open Clip Art Library (http://www.openclipart.org) is now available on-line for download as an individual package consisting of over 5000 images submitted by over 500 international artists. The size of this release successfully exceeds the months "OCAL 5K Pledge" of 5000 images thanks to the contributions by new and old contributors. A quick
2011 May 14
1
[1.3.20]-Option to clip the mouse inside fullscreen windows. ???
The Wine development release 1.3.20 is now available. What's new in this release (see below for details): - Option to clip the mouse inside fullscreen windows. ... ------------------------------------------------------------------------------------------ Hi, What does the above new feature do? If I am running a full screen game in an emulated virtual desktop window will it stop the mouse
2001 Aug 13
1
Sound clip with encoder issue.
Hi, If you check out: http://people.ne.mediaone.net/mjbedy/iamyou.wav You will find a clip that causes an interesting problem with the RC2 encoder. (I have not tried any earlier encoder.) This clip is the first 15 seconds of "I Am You" from Depeche Mode's recent "Exciter" album. It is a quiet passage with a few interesting things going on sonicly. I suggest you
2007 May 12
0
Recent zaptel versions break CLIP?
Hi! Is it just me or do the last 2 or 3 versions of the zaptel-1.2 branch seem to break cli? Often not the full number is displayed, or only 2 or 3 digits? I am in The Netherlands, and have had this in my zapata.conf (which used to work flawlessly) : signalling=fxs_ks immediate=yes usecallerid=yes callerid=asreceived cidsignalling=dtmf cidstart=polarity hidecallerid=no I installed some new
2005 Apr 01
0
[fdo] Open Clip Art Library Release 0.11 Announcement
Open Clip Art Library Release 0.11 Announcement March 8, 2005 UTC - Release 0.11 of the Open Clip Art Library (www.openclipart.org) is now available for download on-line as an individual package consisting of 2896 images submitted by over 200 artists from around the world. Some of the new clip art received this month includes more images of food, computer-related items and even a little boombox.
2005 Oct 16
0
[fdo] Open Clip Art Library Release 0.18 Announcement :: www.openclipart.org
October 16, 2005 - Release 0.18 of Open Clip Art Library (http://www.openclipart.org), containing over 6900 SVG files created by over 500 artists, is now available for download and use. For the month of September, the Open Clip Art Library sought imagery related to pets including images of different breeds appropriate for use by animal shelters. For the upcoming 0.19 release, due November 1,
2007 Apr 12
0
[LLVMdev] What a hot clip people :)
http://www.youtube.com/watch?v=GWu-e6B2AJs -- Ferad Zyulkyarov Barcelona Supercomputing Center c/ Gran Capita 2-4, Nexus I, 204 08034 Barcelona - SPAIN e-mail: ferad.zyulkyarov at bsc.es tel: +34 934054294 fax: +34 934137721