Re: application URL prefixes in the File Column plug-in

dschruth
Sun, 21 Sep 2008 22:23:04 -0000

Ah ha,

Yes, in file_column.rb
--------------------------------------------------
  # FileColumn''s storage location is determined in the following way.
All
  # files are saved below the so-called "root_path" directory, which
defaults to
  # "RAILS_ROOT/public".
   <snip>
# You can specify a custom root_path by setting the :root_path</
tt> option.


  # default options. You can override these with +file_column+''s
+options+ parameter
    DEFAULT_OPTIONS = {
      :root_path => File.join(RAILS_ROOT, "public"),
      :web_root => "rails/",   #added "rails/" here

------------------------------------

Thanks alot!

On Sep 21, 8:20 am, Mark Reginald James
<m...-ejQy8aU/RJumpXlQD71PVDSf8X3wrgjD@public.gmane.org>
wrote:
> dschruth wrote:
> > But my main problem of *reading* these uploaded files remains.  The
> > URL that File_Column generates still doesn''t include the
proper
> > prefix.
>
> > Any ideas?  Is there any easy way I can get File_Column to use
> > ActionController::AbstractRequest.relative_url_root  that I set in
> > environement.rb?
>
> Have you looked into File Column''s :base_url option?
>
> --
> Rails Wheels - Find Plugins, List & Sell Plugins
-http://railswheels.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com