Skip to content

Commit

Permalink
DRYML - Rails 2.1 fix. ActionController::MissingTemplate is now Actio…
Browse files Browse the repository at this point in the history
…nView::MissingTemplate
  • Loading branch information
tslocke committed Jun 20, 2008
1 parent d8a9432 commit b50d86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/dryml/template_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def render_for_file_with_dryml(template_path, *args)
tag_name = @dryml_fallback_tag || "#{File.basename(template_path).dasherize}-page"

# The template was missing, try to use a DRYML <page> tag instead
render_tag(tag_name) or raise ActionController::MissingTemplate, "Missing template #{template_path}.html.erb in view path #{RAILS_ROOT}/app/views"
render_tag(tag_name) or raise ActionView::MissingTemplate, "Missing template #{template_path}.html.erb in view path #{RAILS_ROOT}/app/views"
else
render_for_file_without_dryml(template_path, *args)
end
Expand Down

0 comments on commit b50d86a

Please sign in to comment.