> I don't want my default folder to be mysite.com/images/logo.png, but
> instead mysite.com/common/images/logo.png
>
> How can I change that? Same applies to stylesheets and javascripts.
Don't know if there's an official way, but you could monkey patch some
of the methods...
Look at actionpack/lib/action_view/helpers/asset_tag_helper.rb... and
override these methods:
def compute_javascript_paths(*args)
expand_javascript_sources(*args).collect { |source|
compute_public_path(source, 'javascripts', 'js', false) }
end
def compute_stylesheet_paths(*args)
expand_stylesheet_sources(*args).collect { |source|
compute_public_path(source, 'stylesheets', 'css', false) }
end
def image_path(source)
compute_public_path(source, 'images')
end
-philip
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---