[Rails] Re: Re: file_column problem

Jonathan Weiss jw at innerewut.de
Mon Jan 2 09:39:26 GMT 2006


Ben Hiller wrote:
>> Make sure to use a file with an extension like `.pdf`. A file without an
>> extension like `README` will result in an routing error due to the stuff
>> in .htaccess or the default lighttpd config.
>>
>> Jonathan
> 
> I am using .jpg's, although could my .htaccess or lighttpd config be 
> messed incorrect, since I am on Dreamhost?
> 

If you use Apache it is most likely that they allow you `.htaccess` 
files and then it is under your control. But unless you changed it this 
problem affects only files with no extension.

How to you access the image?

In the accessing view you need:

<%= url_for_file_column 'user', 'icon' %>



Jonathan

-- 
Jonathan Weiss
http://blog.innerewut.de


More information about the Rails mailing list