On Wednesday, 4 February 2015 14:36:40 UTC-5, Ruby-Forum.com User wrote:
>
> 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. 
>
>
The hardest error to debug remotely is "shit just broke". What happened? 
What error message do you get when you access that route through the 
browser? 

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/fc1f9025-47a1-4145-a8f9-ce649cc63ba0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to