myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2990] trunk/app/views/content/_index.rhtml: fixe


From: noreply
Subject: [myexperiment-hackers] [2990] trunk/app/views/content/_index.rhtml: fixed index code for cases where the view name includes underscores
Date: Sun, 13 May 2012 18:06:25 +0000 (UTC)

Revision
2990
Author
dgc
Date
2012-05-13 18:06:24 +0000 (Sun, 13 May 2012)

Log Message

fixed index code for cases where the view name includes underscores

Modified Paths

Diff

Modified: trunk/app/views/content/_index.rhtml (2989 => 2990)


--- trunk/app/views/content/_index.rhtml	2012-05-13 16:58:27 UTC (rev 2989)
+++ trunk/app/views/content/_index.rhtml	2012-05-13 18:06:24 UTC (rev 2990)
@@ -109,7 +109,7 @@
       <div class="results">
         <% @pivot[:results].each do |ob| %>
           <% thing = ob.class == SearchResult ? ob.result : ob.contributable -%>
-          <%= render :partial => "#{thing.class.name.pluralize.downcase}/table", :locals => { :collection => [thing] } -%>
+          <%= render :partial => "#{thing.class.name.pluralize.underscore}/table", :locals => { :collection => [thing] } -%>
         <% end %>
       </div>
     <% end %>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]