Adding To View Path - Not Picking Up Templates?

So, I’m adding a secondary template location to ActionController’s
view_paths so that I can dynamically choose the render path (basic
‘theme’ support).

I can see that ActionController::Base.view_paths contains my new path
before the default path but I can’t ever seem to render the template
in my path. I have a template in both the default and new locations
and the default is always rendered. If I remove it, I get an
assert_template_exists error.

I must be missing something about how Rails 2 chooses its templates.
Ideally it would use the template in the new location if it exists and
if not, fail over to the default location.

Any pointers?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs