From 133c9ee0c3530738d338aae21c914c64871858c2 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Thu, 17 May 2012 18:22:37 -0700 Subject: [PATCH] remove deprecation warnings about the template handler in rails 3.2 --- app/controllers/posts_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 2416e948b..869338f8e 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -28,9 +28,9 @@ class PostsController < ApplicationController mark_corresponding_notification_read if user_signed_in? respond_to do |format| - format.html{ gon.post = PostPresenter.new(@post, current_user); render 'posts/show.html.haml' } + format.html{ gon.post = PostPresenter.new(@post, current_user); render 'posts/show' } format.xml{ render :xml => @post.to_diaspora_xml } - format.mobile{render 'posts/show.mobile.haml', :layout => "application"} + format.mobile{render 'posts/show', :layout => "application"} format.json{ render :json => PostPresenter.new(@post, current_user) } end end