Hi, I would like to use http://cardboardrocket.com/pages/paginating_find 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > > I would like to use http://cardboardrocket.com/pages/paginating_find > 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. > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 IefOops, sorry :) 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: -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---