Rails 2.1 + Theme Plugin
So you’ll get some crazy errors if you’re using the theme support plugin w/ the patch explained here. You’ll need to change your render_file method to look like this (thanks to Nate’s comment for making the code work for everybody):
def render_file(template_path, use_full_path = false, local_assigns = {})
search_path = [
“#{RAILS_ROOT}/themes/#{controller.current_theme}/views”, # for components
“#{RAILS_ROOT}/themes/#{controller.current_theme}”, # for layouts
]
@finder.prepend_view_path(search_path)
local_assigns[’active_theme’] = get_current_theme(local_assigns)
theme_support_old_render_file(template_path, use_full_path, local_assigns)
end
And boom, works.