Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Always use name :object in collection item partial

  • Loading branch information...
commit 61302b09ec6180ebb05b2a3f87ea69d43a1da75c 1 parent 556adce
Alexander Semyonov authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/views/espresso/index.html.haml
View
2  app/views/espresso/index.html.haml
@@ -10,4 +10,4 @@
- begin
= render collection
- rescue ActionView::MissingTemplate
- = render :partial => 'espresso/item', :collection => collection
+ = render :partial => 'espresso/item', :collection => collection, :as => :object
Please sign in to comment.
Something went wrong with that request. Please try again.