I'm looking for 3 areas to work as dynamic assets:

image_path, javascript_path, and stylesheet_path

When I say dynamic, I mean that they will be dynamic through
controller/models.  I have been working through approx. 12 hours of
searches to satisfy my answer to this question but am not finding much
luck.

The closest things I've found enabling this are use of config for assets
(which is normally done for CDNs), or monkey-patching the tag helpers,
which still won't give me what I want.

The reason why I want to do this is to provide for themes.  As an
example, if your rails app contained 20 different themes, a theme would
be composed of layouts, images, javascripts, stylesheets, etc.  You
wouldn't want to have to change your theme through an initializer and
stop/restart your app for it to work.  I've already done a lot of leg
work with getting my themes into the MVC structure.

I just need the ability to change the three paths above using either a
custom call to a module, or through the application controller.

Can it be done and if so, how?

Many thanks.
-- 
Posted via http://www.ruby-forum.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 [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