I love this plugin (I'm able to get it working mostly) but I'm running into an issue with using it in an application with an mongrel/apache specified application level URL prefix. This is a problem for both uploading and viewing the file once it has been loaded. I was able to (manually or via 2b below) load it but then the hyperlink File Column created was still missing the prefix. It generated the following URL:
http://mydomain.com/people/photo/4/picture.name.jpg instead of http://mydomain.com/PREFIX/people/photo/4/picture.name.jpg
Is there an easy way to modify (a helper function? variables in environment.rb ?) code to get File Column to recognize the prefix? Is this a rail's wide prefix that I could set?
Additionally I'm wishing that there were a way to define my prefix in just one place, currently, running a rails application in a subdirectory on the server requires no less than 3 modifications (for me):
1) ProxyPass /PREFIX http://127.0.0.1:8000/PREFIX (in apache)
2) a) prefix: /PREFIX (in mongrel_cluster.yml) OR b) ActionController::AbstractRequest.relative_url_root = "/PREFIX" (in environment.rb) PLUS symbolic links in my public folder
3) all of the hard coded links in my app/views/shared/_header html file for example: <a href="/PREFIX/people">people</a>
There has to be an easier, more elegant way. Anybody know of one?
Thanks,
Dave