Does anyone have the same problem or a working solution? I get always this error message, here are model, controller and view code
class Profile < ActiveRecord::Base
cattr_reader :per_page
@@per_page = 10
end
def index
@search = Profile.search(params[:search])
@profiles = @search.paginate(:page => params[:page])
end
<%= will_paginate order @profiles , :by => :created_at, :as => "name" %>
please help, thanks in advance