Permalink
Browse files

Remove deprecated and redundant .html.erb extensions from render part…

…ial calls.
  • Loading branch information...
1 parent 49c7ecf commit a57585072c276aed6e5b6e9f0e015dd314cb1cc1 @xaviershay committed Feb 18, 2012
View
2 app/controllers/admin/pages_controller.rb
@@ -60,7 +60,7 @@ def preview
respond_to do |format|
format.js {
- render :partial => 'pages/page.html.erb', :locals => {:page => @page}
+ render :partial => 'pages/page', :locals => {:page => @page}
}
end
end
View
2 app/controllers/admin/posts_controller.rb
@@ -60,7 +60,7 @@ def preview
respond_to do |format|
format.js {
- render :partial => 'posts/post.html.erb', :locals => {:post => @post}
+ render :partial => 'posts/post', :locals => {:post => @post}
}
end
end
View
2 app/controllers/comments_controller.rb
@@ -19,7 +19,7 @@ def new
respond_to do |format|
format.js do
- render :partial => 'comment.html.erb', :locals => {:comment => @comment}
+ render :partial => 'comment', :locals => {:comment => @comment}
end
end
end

0 comments on commit a575850

Please sign in to comment.