Displaying 20 results from an estimated 8000 matches similar to: "file_column and has_many"
2006 Mar 06
5
Question about file_column plugin
Hi!
File_column plugin saves uploaded files to
"public/model/image/model_id/filename", if i understand it correctly.
Does it mean that it creates new folder for every image?
I have product (model) that has_many images (model). Is it possible to
use (or modify) this plugin that it would save my images to different
folder, so the id of the model_id part would be id of the product
2006 Apr 25
7
[TIPS] File_column plugin and multiple file uploads
No..i am not a full time rails developer...i code in pl/sql for paying my
bills...and i am just working on a pet project...so i had some trouble in
doing..what i specify in the subject.....now somehow i solved this
problem...so those interested can look at the code at:
http://hemant.wordpress.com/2006/04/25/file_column-and-how-the-fuck-it-handles-multiple-files/
I write this mail and
2006 Jan 09
5
file_column content type
is there a way using the file_column plugin to enforce a certain
content type based on regex (i.ie, /^image/) and/or filesize (150k)
?
thanks
adam
2006 Feb 16
4
file_column :: changing image with object.update
Dear all,
file_column now works fine with object.save i.e., it updates my
database field with the correct image file name and places the image
file into the correct public folder.
However, I cannot get file_column to work the same way with
object.update when trying to change image. It only updates my field
with the image file name. However, the new image is not copied into
the correct
2006 Mar 26
2
File_Column plugin causes strange errors on windows
I installed the File_Column plugin and setup my relationships.
create_table "screenshots", :force => true do |t|
t.column "image", :string, :limit => 255, :null => false
t.column "description", :text
t.column "created_on", :datetime, :null => false
t.column "item_id", :integer, :null => false
t.column
2006 Jan 22
2
File_column not keeping value during page reloads
I''m trying to use the file_column plug-in to attach a file to a
newsletter posting. It works fine if I get the form right the first
time, but if I get an error, such as not typing in a required field, and
the form re-displays, my file selection box reverts to "no file selected."
Here''s my relevant controller code:
def new
@newsletterpost = Newsletterpost.new
2006 Jan 03
3
file_column howto (beginner)
I''m trying to use file_column as a Rails plugin.
Of course I read the doc (from Sebastian, this maillist) and little
bit of source (as good as I, newbie, could understand it)..
But I''m not able to implement it in my app.. I''m a totally newbie with
less software development experience.
I get the file_column_field in my view with simply invoking the
helper... (:multipart
2006 May 02
3
file_column : _temp field always nil
Hi,
I''m trying to set up file_column to upload attachments for emails. My
view has <td align="left"><%= file_column_field ''to_do'', ''attachment''
%></td> and the attachment_temp hidden field is generated. When I
inspect tthe params on saving the form the attachment_temp param is
always an empty string. Also, when I was
2006 Aug 13
5
problems with file_column plugin
1) installation is not as smooth as some other plug-ins. If you follow
the instructions on
http://www.kanthak.net/opensource/file_column/
it makes a directory called trunk instead of file_column. You have to
manually rename it to file_column. I guess this is a minor annoyance but
it gives me the feeling that things aren''t quite like other plugins.
2) I get this error: undefined
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
<%=
2006 Apr 08
5
file_column
hello,
how to generate new image if i do add new version? For example, I add
version :small => { :size => "320x240" } .
How to tell file_column to generate new image version if image is
allready uploaded ?
Thank you!
--
Posted via http://www.ruby-forum.com/.
2006 Apr 28
2
file_column with polymorphic table relationship?
Hello,
I''m just starting out with both Rails and Ruby, so I hope this isn''t too
simple of a question - but I''ve been struggling to find a solution.
I''m using the file_column plugin to handle image uploads and thumbnail
generation. In addition, I''ve wrapped the image into a polymorphic table
so I can have uploaded images associated with multiple
2006 Jan 12
5
file_column preview in multistage forms
i have a 2 step form which contains 1 file_column field.
The second form is just "This is how your post will look" kind of form
and the user can click Edit (to take them back to form1) or Submit.
If the user clicks edit it takes them back to the first form with
fields populated. I have it working with all text fields, I just dont
know how to do this with file_column field (showing the
2006 Apr 27
3
LoginEngine File_column interop
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Hello all,
I hope someone can help me with this issue, I have the SVN
file_column and using LoginEngine/UserEngine with Rails 1.1.2. My
issue is that I''m overloading the view for LoginEngine to support a
file image upload as part of the user record and having a heck of a
time doing so.
Near the bottom of my new _edit.rhtml
2006 Dec 17
1
file_column error: StringIO Instead of Temp_File
Hi all,
i am using file_column to upload 3 images from the same form, they are
all different names and DOM IDs so there isn''t a problem with the
multiple upload.
The problem is when i try to upload a file (or 2, or 3) sometimes it
works, but sometimes i get this in the log file:
"bar_image"=>{"file_temp"=>"",
2006 Mar 16
2
Questions about file_column plugin
Hi!
I''ve got 2 models - let''s call them User and Image. User has_many
images. (Thanks to Mark Reginal James :) ) I have a single form where i
can create a user and add to him any number of images, which are
uploaded using file_column plugin.
Now 3 questions:
1. How to change the default path where file_column plugin saves images,
so it will save them in a directory, which
2006 Feb 28
6
File_column, RMagick, and watermarking
I''m working on a photo gallery and I''m using File_column to handle the
uploads of the files and create my thumbnails, but does anyone here have
any idea how to have a watermark (opaque text maybe) placed over one of
the versions? Any ideas on how to go about this would be great. Even if
it''s just straight RMagick code, that would be fine too.
Thanks in advance for the
2006 Jun 01
3
file_column - blank folder created, no upload
i want to upload and resize images so i installed the file_column plugin
but im having a big trouble, i have a table images with (id, name)
fields where the images names/path will be stored, i get a success
message(from the controller after @art_image.save) every time i try to
upload but only a blank directory its created /public/image/name/tmp ,
without errors messages, i see a post related
2006 Jun 05
1
file_column permissions
this is getting frustrating...
i installed file_column without a hitch for the first time to just play
around with. using the exact same steps as before, i try to use it with
one of my actual applications, and i get "permission denied" errors. i
figure there might be some conflict with my application so just for
kicks i do the exact same thing i did the first time to test
2006 May 07
1
file_column problem - uninitialized constant Magick
Hi,
I''m on Windows and getting the following error while trying to use
file_column with RMagick,
uninitialized constant Magick
C:/INSTAN~1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing''
#{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in
`file_column''
I installed file_column by