On 4 February 2015 at 19:35, Justin Cheeze <lists@ruby-forum.com> 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.
This will give you some hints on how to debug your rails application
so you can get a handle on what is going wrong.
http://guides.rubyonrails.org/debugging_rails_applications.html
>
> this application is currently running ruby 2.0.0 and rails 3.2.19
If developing new apps you should be using something much newer than
that. 3.2 will, I believe, be going out of support in a few months.
Colin
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu97eDUvUKO0Ked81fCz%2B%2BkMk%3D%2BjUCKtXediKrBSjdjNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment