Displaying 4 results from an estimated 4 matches for "mime_extensions".
Did you mean:
home_extensions
2006 Mar 16
0
problem with file_column storing images and other files
...ctFiles which associates an arbitrary
amount of image and documents with a product. I am using the
file_column plugin to manage the upload and storage of the images,
like so:
class ProductFile < ActiveRecord::Base
# Accepted MIME types, mime types that are not part of this list are rejected
MIME_EXTENSIONS = {
"image/gif" => "gif",
"image/jpg" => "jpg",
"image/png" => "png",
"application/pdf" => "pdf",
"application/msword" => "doc",
"application/zip" =&g...
2006 Mar 02
2
url_for_file_column not returning correct path
I added this test towards the end of the included
file_column_helper_test.rb that shipped with the file_column plugin:
def test_url_for_file_column_different_root_path
Entry.file_column :image, :root_path => File.join(RAILS_ROOT,
"public/files")
e = Entry.new(:image => upload(f("skanthak.png")))
assert_match %r{/public/files/entry/image},
2006 Jan 17
3
file_column :root_path question.
I''m developing on Windows and deploying to FreeBSD+lighttpd using
Switchtower and I''ve got things generally working. My problem now is
that file_column data gets zapped every time I deploy, because
Switchtower creates a whole new myapp/public directory with each rev.
I looked through the file_column docs and found the :root_path option,
which I use in my models as follows:
2006 Feb 16
1
file_column problem
...er_helper.rb:7: warning: already
initialized constant DEFAULT_HEAD_OPTIONS
./script/../config/../vendor/plugins/trunk/lib/file_column.rb:193:
warning: already initialized constant EXT_REGEXPS
./script/../config/../vendor/plugins/trunk/lib/file_column.rb:587:
warning: already initialized constant MIME_EXTENSIONS
./script/../config/../vendor/plugins/trunk/lib/file_column.rb:590:
warning: already initialized constant EXTENSIONS
./script/../config/../vendor/plugins/trunk/lib/file_column.rb:605:
warning: already initialized constant DEFAULT_OPTIONS
-e: No such file or directory - file -bi
"./script/../...