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:

    <% @articles.each do |article| %>
  1. <%= article.name %>
  2. <% end %>
<%= 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

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

Mike G. 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 I.

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:

Il n’y a pas encore d’article.


3: <% else -%>
4:

5: <%= render :partial => @articles %>
6:

7: <% end -%>
8: