Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

protected method `url_for' called for #<WillPaginate::LinkRenderer:0x184df1d>

#208

Greetings,

I am really desperate to get the paging working with this purportedly great rails paging plugin in. Here are my snippets:

Controller:

@events = Event.paginate(:all, :page => params[:page])

Model:

cattr_reader :per_page

@@per_page = 2

View:

<%= will_paginate @events %>

Error:

NoMethodError in Events#index

Showing smart_events/index.html.erb where line # raised:

protected method `url_for' called for #

Please advise

Drew

Reported by Andrew Shika · April 13th, 2008 @ 05:31 PM

State: invalid
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Mislav
    Mislav
    • State changed from new to invalid

    #207

    April 16th, 2008 @ 12:58 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.