I'm new to learning how to think, and programming, actually. While I don't mind being thrown to the wolves, I have no idea how to fix the issue I'm struggling with, which is the following: I currently have a table where two tabs, one, incomplete, and two, complete have pagination tabs at the bottom of the table. the document model reads self.per_page = 10, which represents the number of documents before moving onto the next page. currently, I've made 10 documents, and can move between pages smoothly. however, when on the complete tab, and while there is only one entry when clicking for the next page, I'm being redirected to the incomplete tab, and i don't want that.
some helpful dude, though didn't work was like
@post = Post.paginate(:page => params[:page]) #controller = will_paginate @post, renderer: BootstrapPagination::Rails #view
where post is changed out with document.
so what i did in the document_controller.rb file was definded a method index and ended the method. when defining the method, I put @document = Document.paginate(:page => params[:page]) and the shit just broke.
this application is currently running ruby 2.0.0 and rails 3.2.19
the gems which might have something to do with this particular story I'm struggling with are:
gem 'will_paginate-bootstrap', '1.0.1' gem 'bootstrap-sass', '~> 3.3.1' gem 'haml-rails', '~> 0.4'
os x for operating system 10.9.5
besides abusing the privilege of stupidity, mind shedding some lite for this nuby, please?
I appreciate your time.
Attachments: http://www.ruby-forum.com/attachment/10477/Screen_Shot_2015-02-04_at_2.21.07_PM.png http://www.ruby-forum.com/attachment/10478/Screen_Shot_2015-02-04_at_2.21.01_PM.png http://www.ruby-forum.com/attachment/10479/dafaq1.jpg.png