About paginating_find

Hi,

I would like to use Welcome cardboardrocket.com - BlueHost.com pluggin with a partial. But I don't understand why it's not possible to remplace in the app/views/articles/index.html.erb view this code:

<ol> <% @articles.each do |article| %>   <li><%= article.name %></li> <% end %> </ol> <%= paginating_links(@articles) %>

by this new one:

<%= render :partial => @articles %> <%= paginating_links(@articles) %>

I ask this because when I do this, I have an error. :s Thanks for any help.

hey Zangief, it's kinda hard to diagnose the problem without specifying the error message. Provide us some details on the error and we might be able to provide a solution

Hadouken

Mike Garey wrote:

hey Zangief, it's kinda hard to diagnose the problem without specifying the error message. Provide us some details on the error and we might be able to provide a solution

Hadouken

On Fri, Jun 20, 2008 at 3:42 AM, Zangief Ief

Oops, sorry :slight_smile:

ActionView::ActionViewError in Articles#index

Showing articles/index.html.erb where line #5 raised:

Couldn't find template file for paging_enumerators/_paging_enumerator in ["/Users/cyril/Sites/rails/inad/app/views"] Extracted source (around line #5):

2: <p>Il n'y a pas encore d'article.</p> 3: <% else -%> 4: <div class="articles"> 5: <%= render :partial => @articles %> 6: </div> 7: <% end -%> 8: