Rails 3 dynamic view_path

posted on Tuesday, December 14, 2010

There is an easy way to add view path dynamicly inside ActionController using prepend_view_path or append_view_path. But there is a problem because each request will start a filesystem traversal to do a pathset, we don't want to do that especially if there is a big project.

So here is an idea of how to handle that view_path insertion...

Continue reading