#59 ✓resolved
sumeet koshal

page_links or remote_page_links doesn't work

Reported by sumeet koshal | March 1st, 2009 @ 10:50 PM


I was quite excited to use searchlogic in my project until I knocked out by few issues as below:

  1. page_links or remote_page_links doesn't works for me.
  2. conditions.group doesn't work either.

Here are some more details on issue no. 1


You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.-

Extracted source (around line #12):


Trace of template inclusion: /user/_list_items.erb, /user/index.html.erb

vendor/plugins/searchlogic/lib/searchlogic/helpers/control_types/links.rb:121:in page_links' app/views//layouts/_paginator.erb:12:in_run_erb_47app47views47layouts47_paginator46erb'
app/views/user/_list_items.erb:3:in _run_erb_47app47views47user47_list_items46erb' app/views/user/index.html.erb:10:in_run_erb_47app47views47user47index46html46erb'
app/controllers/user_controller.rb:35:in `index'

Any quick help will greatly be appreciated.


10: <% if @search.page_count > 1 %>

12: <%= page_links :remote => {:update => "list_items"} %>

14: <% end %>

Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson March 3rd, 2009 @ 05:02 AM

    • State changed from “new” to “open”

    Hi, I can't really solve the problem with the given information. What version of rails are you using? This doesn't sound like a searchlogic problem, it sounds like a problem that is deeper, for some reason modules are getting required / loaded.

  • Ben Johnson

    Ben Johnson March 6th, 2009 @ 05:43 AM

    • State changed from “open” to “resolved”

    Hi Sumeet, I have other things to do just like you, I apologize if this wasn't my #1 priority this week.

    Regardless, none of your messages clearly state what the problem is. I can't solve this because I don't know what the problem is.

    Have you considered updating rails? There is no reason you should be getting this error as I have multiple tests in place and an example / demo app that is working just fine. I think you problems might be attributed to your rails version. If you can update I would recommend that, or at least give it a shot.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Provides common named scopes and object based searching.

People watching this ticket