search for: howtousefilecolumn

Displaying 12 results from an estimated 12 matches for "howtousefilecolumn".

2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post. I am trying to configure file_column plugin so that it stores the images in a directory completely outside of RAILS_ROOT. I have no problems in storing the files by setting :root_path option. But I can''t get to display these images using ''url_for_file_column''. What I get instead of the image is
2006 Jan 17
2
file_column plugin and instance variables
To make file_column work I have to copy my local variable back to an instance variables like this: <% for product in @products @product = product %> <div class="catalogentry"> <%= image_tag url_for_file_column(''product'', ''image_url'') %></p> This is needed because file_column specifically looks for the instance
2006 Aug 18
6
Prevent user from accessing an image
Hello, I''m using file_column to save my users images. It''s all OK, but I want to prevent one user from accessing other user''s image. Is it possible, as the image is saved in the file system ?? Thanks Parra -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 28
4
File_column trouble, advice needed
Finally i have RMagick and the file_column plugin installed, but at the time of uploading images i have trouble, i get "uninitialized constant ArtImage" error and other errors, im following the instructions on http://wiki.rubyonrails.com/rails/pages/HowToUseFileColumn but doesnt seems to work, this its the code im using: #----view <%= form_tag({:action=>''create_art_image'', :id=> @art_image}, :multipart => true)%> <%= file_column_field "art_image", "image" %><br/> <%= submit_tag ''Uplo...
2006 Jun 01
9
More flexible file column?
The file column plug-in is great, but there is a problem with it. Well, two... But the other is well documented now. :^) Consider a time when you''ve created a CMS for a client and it''s been in use for over a year. Say 1500+ images have been uploaded so far. Now the client comes back with a simple request... ''Can you change the thumbnail size to 80/90, rather than
2006 Jan 22
12
Problems with File_column
Hi, Rails - newbie here.. I''m setting up an app and am trying to use file_column to upload a picture with an item and I''m running into several problems. (Background: I''m running Locomotive Rails under OS X 10.4.4, and using Safari) I followed the directions to add the necessary items, then found out that I had to add the item to make the form tag be a multipart
2007 Nov 20
3
How to rename image file before saving it using file_column?
Hello, I''m playing with the file_column plugin and I would like to rename the file when uploading it and before saving it to DB. I''ve tried it with before_create method in my model and also in the controller with the following code: @picture = Picture.new(params[:picture]) @picture.filename = ''newname'' Which doesn''t worked. How it could be done (if
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 02
1
Newbie Post.
Greets to the list, I just started learning RoR, coming from a PHP/MYSQL background. So this is all new for me... I have a project where I need to upload a picture into my db. I have been reading the wiki (I wish it was more complete) and have gleaned the code to upload directly into a database. My form is setup correctly, as I can insert data into the DB without issues. Now I am trying to
2006 Aug 13
5
problems with file_column plugin
...to add require ''rails_file_column'' to environment.rb but I still get the same error Does anyone have an example of a getting this plugin working? A complete example would be great (model, list and form views, and controller, and schema) http://wiki.rubyonrails.org/rails/pages/HowToUseFileColumn only has model and view code thanks! -- Posted via http://www.ruby-forum.com/.
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 -
2006 Jan 16
6
file_column plugin error
Hi, I downloaded FileColumn plugin and love the concept. But when I tried the example listed on the plugin web site, I got the following error: NoMethodError in Entry#new undefined method `file_column'' for Entry:Class My environement is Red Hat linux 9.0 with mysql 4.1. I installed file_column under vendor/plugins. If I run "ls", I get the following directories: