similar to: FileColumn Redux

Displaying 20 results from an estimated 100000 matches similar to: "FileColumn Redux"

2006 Jun 10
0
Dynamic file paths in FileColumn
I have a file uploader application in ROR using the very nice FileColumn plugin. In looking at the source code I can see that there is a DEFAULT_OPTION hash with some root path options and such which can be merged from an options paramater. These static path changes are not a problem. My question is dynamic path options. My upload form, when you boil it down, has two fields. The first is
2006 Apr 05
0
FileColumn - version and not image files
Hi I have this filecolumn: file_column :file, :magick => { :versions => { :large => ''756x567>'' } } Does anybody have a solution to make this also accept files that aren''t images? Now this makes filecolumn return an error of "File invalid image" if the file isn''t an image. Would be nice if it, when the file is invalid image, just
2006 May 19
1
FileColumn
I''m using Windows and Postgres 8. I installed RMagic gem thingy and FileColumn plugin ok. I followed instructions exactly as directed on FileColumn web site which is very straight forward: ---model class My_model < ActiveRecord::Base file_column :column_for_file_name end -----view -upload form--set to mulitpart <%= file_column_field "my_model",
2006 Mar 20
1
FileColumn question
Can someone please help me with this. I have an Images table :- create table images ( id integer unsigned not null auto_increment primary key, image varchar(200) not null default '''' )ENGINE=InnoDB default CHARSET=latin1; And a car table :- create table cars ( id integer unsigned not null auto_increment primary key, user_id integer unsigned not null, title varchar(100) not
2006 Jan 11
0
File_column : how can I resize/convert/whatever an image according to form-submitted values?
Hi guys, I want to have a file upload form which would allow the user to ask for certain transformations of the image before saving it - most importantly, to resize it. Now, how can I make an instance of FileColumn enabled model process these imagemagick instructions? My model looks looks somewhat like : class Image < ActiveRecord::Base attr_accessor :resize_dimension, :resize_to
2005 Dec 27
1
filecolumn to database
Hi, I''m using filecolumn to upload a file to mysql blob : _form.rhtml : file_column_field "entry", "attach" model (rb file) : file_column :attach How can I update controller create function to insert file in database ? redefine model save function ? Someone has a sample source ? Regards, Fabian
2005 Dec 04
2
Filecolumn: url_for_file_column problem
Calling url_for_file_colum results in a TypeError: can''t convert nil to string. The error is in line 148 of filecolumn.rb: def relative_path(subdir=nil) File.join(relative_path_prefix,subdir, @filename) end If I substitute '''' for subdir in the File.join command, then it seems to work fine. Since this is a plugin, I''m wondering why I need
2006 Mar 23
5
Filecolumn storage location
Hi, I am using file_column for some image uploading. I want to have all the images stored under one root which I have managed by setting the :store_dir option as below. file_column :filename, :store_dir => File.join(RAILS_ROOT, ''public'', ''images'', ''products'') So, my images get uploaded to: /public/images/products/<primary_key>
2006 Jan 19
0
file_column error: tmp file created but not actual
Hi When I submit the form with field_column, the actual image is not uploaded, only temp files are crreated and I dont see actual file created and the image file name is not in the database and get "fieldWithErrors". Then if submit again, the actual file in created and an database record is generated. Here is the log file. I print @params and @wallpaper. I find the following: 1st
2006 Jun 07
0
Create new Image Plugin?
I''m working on a CMS for some time now. I need some kind of functionality to deal with images. As I know there are to plugins available: SuperImage and FileColumn. Neither of these have exactly what I want. What I want is a plugin with the following functions: - A poppup window (or ajax field) where you can search for, scroll trought pictures, find the one you will have, press on that,
2006 Apr 04
4
Newbie File_Column and Console Question.
I recently got File_Column installed and working and it is great, but now I find myself needing to resize all the images I already uploaded. Through the web I found that the answer lies in going to the script/console and adding: Attachment.find(:all).each do |a| a.asset = File.open(a.asset) a.save end But what exactly do I do next, I tried running it with no success. How can I make
2006 Mar 23
1
Using ImageMagick with Locomotive
Hi, I''m trying to use the routines on this page: <http://addictedtonew.com/archives/127/rotating-images-with-rmagick-and-ruby-on-rails/> to try and rotate some images. I tried using the script/console to do some testing, - I know ImageMagick is working, as I''m using the filecolumn plugin to resize images as they are loaded. When I try, using the console, to rotate an
2005 Dec 29
3
FileColumn Help
i''ve changed store_dir to :store_dir => "public/uploads/users/pictures/" that works great for uploading, but url_for_file_column is still outputting: /user_picture/image/id/name.jpg how do i make url_for_file_column output the correct url? -- Posted via http://www.ruby-forum.com/.
2009 May 25
0
NameError (uninitialized constant FileColumn::Magick::ImageList
Hi, I have been using RMagick and File Column in my app together without a problem, but when I tried to add in some new functionality in my model where I use file_column, I got the error in the subject line. The offending line in my code is: image = Magick::ImageList.new(path_to_image) Has anybody ever seen this problem when using the two libraries together? I have tried adding in a require
2006 Jul 30
1
FileColumn - Validate Before Saving
file_column is great -- but I need a way to run through the validations (ie: validates_file_format_of) before saving. That is, when a user first uploads an image it is displayed in the view but not ''saved'' until they click the ''Save'' button on the form. I want to display an error message/disable the ''Save'' button if the file they just
2013 Jan 24
0
REDUX: puppetlabs-products yum checksum failing
Again with the yum metadata checksum failures: http://yum.puppetlabs.com/el/6/products/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum I''m thinking it''s time for me to add the Puppetlabs repos to my mrepo box. -- \*..+.- --Greg Chavez +//..;}; -- You received this message because you are subscribed to the Google Groups "Puppet
2012 Jul 12
0
[LLVMdev] RFC: Pass Manager Redux
On Wed July 11 2012 11:50:01 Chandler Carruth wrote: > - What else did I miss? > > > Things that are totally out of scope: pass registration, the current pass order and structure, the fundamental interface of mapping from a pass to an analysis, etc. This is really about pass management and scheduling. > Hi Chandler, I understand why the pass registration and the pass
2006 May 15
5
Finding out the file attributes in FileColumn models
Is there a way to find out the attributes that have been passed to file_column in models? I''ve looked through the source and it seems that the file_column methods are generated at runtime but there''s actually no class or instance variable that hold the file attribute. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2012 Jul 11
0
[LLVMdev] RFC: Pass Manager Redux
This is excellent Chandler. We spoke before about wanting to keep running things like InstCombine and SimplifyCFG in a loop until stabilization. This will make doing that much easier. I think some of the idea for this work might have come from a patch i tried to submit a few weeks ago on reducing recomputing the dom tree, in which you commented that we need to fix the pass manager. In that
2006 Feb 24
1
File Column
Has anyone any experiance with the FileColumn plugin. I''m trying to create thumbnails, and also alow non picture uploads. Here''s some working code, but if I try and upload a zip, it says ''File invalid image''. Is there anyway of having both image uploads (and thumbnail generation) while also allowing non image uploads? class Entry < ActiveRecord::Base