search for: filecolumn

Displaying 20 results from an estimated 42 matches for "filecolumn".

Did you mean: file_column
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, h...
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", &...
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 to make this modification. 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...
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 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/.
2006 Mar 30
0
FileColumn Redux
I installed FileColumn successfully but now find the need to get a new image size. I was wondering if there was a fast script, or method, that would run through all my products and use the existing mail file already submited and resize it according to the new specifications. Thanks! -- Posted via http://www.ruby-f...
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:
2006 Mar 20
1
FileColumn question
..._id) references users(id), constraint fk_cars_image foreign key (image_id) references images(id) )ENGINE=InnoDB default CHARSET=latin1; ( The user table I''m using is the one provided by the Salted Login Generator ). Now I want my Cars Table to have many images. 1) How should I modify FileColumn to upload...and view the images? 2) How could I modify FileColum to allow for users to delete images? Thanks in advance. -- Posted via http://www.ruby-forum.com/.
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 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
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
2005 Nov 18
10
[Request] file_column configurability
I wasn''t sure where to email this request, so I am hoping the author of file_column actually sees this. I was wondering if there were any plans to allow some configurability in the file_column plugin. By configurability I mean allowing the developer to define which table column is used as the unique identifier when creating image folders. Right now it seems like it uses the ID of the
2006 May 09
3
File_Column Development Dead?
I''m curious if anyone knows if development on the file_column plug in is continuing? I''ve seen some SVN commits from awhile back but no binary releases. Did Sebastian speak at Canada on Rails? Anyone catch that? What is the future of file_column?
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, and automatically get an image link (in bluecloth, redcloth ++) in you...
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...
2006 Nov 13
0
RMagick throws path errors in Rails but not from the shell (OSX)
Hello All, I''m using FileColumn to store images for a model in my app. I use filecolumn to scale uploaded images to different sizes. This much works fine. I then created a Ruby class for annotating text on the uploaded image. I tested this class from the shell and it works as expected. I then created a plugin for this class and...
2006 Jan 04
1
[BUG?] image_tag
...t; unless %r{^[-a-z]+://} =~ source we''ll take the url /foo/bar.jpg and prepend /foo onto it again, even though it''s already an absolute url. in trying to create a patch i''d like to understand the logic here. ?? the code that''s already adding /foo is the filecolumn plugin (using @request.relative_url_root) - which is in error: rails or the plugin? should urls with relative_url_root already prepended be smoothly handled by rails and not added to again, or is the plugin in error by prepending something that rails will anyhow? ?? regards. -a -- =========...
2006 Mar 13
3
unit tests executed for every page load ?
After I installed the very sweet file_column plugin I get strange output on my html pages. At the very end I always get something like this: "Loaded suite dispatch.cgi Started Finished in 0.000218 seconds. 0 tests, 0 assertions, 0 failures, 0 errors " Seems like there is executed a non existent test suite for every page load. Can anybody help me find the lines that force this
2006 Jun 16
4
Depot App: Upload Images
Hello, I''m a newbie to Ruby on Rails and like many others, I have been working through the depot application in the Agile Web Development book. I was wondering if anyone had enhanced the depot application to include the upload of images for each product? The following describes the sort of thing that I have been asked to produce for a client, so apologies if the information is not