On Thu, Jan 14, 2010 at 7:51 PM, Alpha Blue <[email protected]> wrote:

> I'm looking for 3 areas to work as dynamic assets:
>
> image_path, javascript_path, and stylesheet_path
>


> 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?
>
>
 Sounds like a fun  and interesting project. I would be interested in
finding out your
final solution.

 You might consider adding to the config object used in intitializer ala the
way
action mailer and actioncontroller use it for UrlWriter. and then having a
mixin that
renames the above methods and prepends a different directory for the images,
javascript
and style sheets. making some common theme convention that will be assumed
under
the themes directory will make the relative addressing of the image path etc
more sane.

thats one thought. good luck. good tests will make a difference as you try
multiple solutions
and will pay for themselves.
--
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