From 3138566051ea4d1de5782eb2097c02cf36fe7652 Mon Sep 17 00:00:00 2001 From: andrew Date: Sun, 3 Feb 2008 00:57:12 +0000 Subject: [PATCH] render inline instead of a partial git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@121 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- app/controllers/tag_images_controller.rb | 2 +- app/views/tag_images/_tag_image_errors.rhtml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 app/views/tag_images/_tag_image_errors.rhtml diff --git a/app/controllers/tag_images_controller.rb b/app/controllers/tag_images_controller.rb index b0b33e2..367e339 100644 --- a/app/controllers/tag_images_controller.rb +++ b/app/controllers/tag_images_controller.rb @@ -26,7 +26,7 @@ class TagImagesController < ApplicationController @tag_images = @image.tag_images render :partial => 'tag_images' else - render :partial => 'tag_image_errors', :status => 500 + render :line => "<%= error_messages_for 'tag_image' %>", :status => 500 end end diff --git a/app/views/tag_images/_tag_image_errors.rhtml b/app/views/tag_images/_tag_image_errors.rhtml deleted file mode 100644 index b7a52c0..0000000 --- a/app/views/tag_images/_tag_image_errors.rhtml +++ /dev/null @@ -1 +0,0 @@ -<%= error_messages_for 'tag_image' %>