Joseph Mate's Blog

will_paginate and markus

Posted in Uncategorized by Joseph on February 15, 2010

Problem Experienced:
The page number is not saved in the URL when flipping through pages.

At first we thought it was something to do with will_paginate. However, if you take a look at: http://railscasts.com/episodes/51-will-paginate . You will notice that will_paginate successfully puts the parameters into the URL. It’s not will_paginate; it’s the way we’re using will_paginate.

So now I am looking at where the Rail’s params[] are used. Markus does something differently with params[] compared to the simple website from the railscast. Additionally, I’m looking through all the AJAX calls we make on the submissions page. Finally, I am trying to understand how s_table_paginate is participating in pagination.

On a side note:
Mike gave me a nice console script to populate the submissions page for markers.
Just run script/console and place paste the following code ( ctrl shift v to paste into a terminal ):

a = Assignment.first
Student.all.each do |student|
    student.create_group_for_working_alone_student(a.id)
end
About these ads

One Response

Subscribe to comments with RSS.

  1. Joseph’s Midterm Report « UCOSP said, on March 1, 2010 at 1:00 am

    [...] will_paginate: an elegant plugin for performing pagination [4] [...]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: