Is it possible for you to do something like this:

def explicitly_compute_public_path(source, dir, ext = nil,  
include_host = true)
   send(:compute_public_path, source, dir, ext, include_host)
end

--or--

module ActionView
   module Helpers
     module AssetTagHelper
       def explicitly_compute_public_path(source, dir, ext = nil,  
include_host = true)
         compute_public_path(source, dir, ext, include_host)
       end
     end
   end
end

WDYT?


On Sep 11, 2009, at 5:53 PM, Daniel Lopes wrote:

>
> Hello, I'm in the middle of a situation where the method
> compute_public_path must be public instead of private.
>
> Some times we need to add .mov, .flv or even another kind of asset
> like swf and I want use my correct public path because I already setup
> a exclusive host for my static assets (wich is the right behavior).
>
> I know I can use private methods inside my views, but it doesn't
> sounds strange? Why we have methods like image_path and
> javascript_path (and are all public) but don't have a method for all
> other kind of static assets?


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to