fixed jrails, fixed deprecation warnings

This commit is contained in:
albert
2010-10-27 13:40:50 -04:00
parent a9da0f1059
commit 484ff696e2
16 changed files with 119 additions and 99 deletions

View File

@@ -1,7 +1,8 @@
%div{:class => "comments"}
%div{:class => "index"}
- @posts.each do |post|
%div{:class => "preview"}
= image_tag(post.medium_file_url)
= render :partial => "comments/partials/index/list", :locals => {:post => post, :comments => post.comments}
%div{:class => "clearfix"}
%div{:class => "post"}
%div{:class => "preview"}
= image_tag(post.preview_file_url)
= render :partial => "comments/partials/index/list", :locals => {:post => post, :comments => post.comments.recent.reverse}
%div{:class => "clearfix"}