remove deprecation warnings about the template handler in rails 3.2

This commit is contained in:
Maxwell Salzberg 2012-05-17 18:22:37 -07:00
parent af1109dcf7
commit 133c9ee0c3

View file

@ -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