paginate not working because arguments become nil?!

It looks like you're relying on params[:category] to persist across pages.
That won't happen. You have to store it in the session hash. Then you can
write code like:

def view
  # first visit, user supplies category
  session[:category] = params[:category] if params[:category]

  # any visit, refer to session hash to get category value
  getView(session[:category])
end

Hope this solves your problem.

koloa-2 wrote: