Sorry for the cheesy topic name couldn’t resist.
B4 I go into details I’m rocking Rails 1.2.6. I’m hosting on MediaTemple
and they seem to working on some issue between their grid servers and
I’m struggling with pagination. I spent a few hours discovering that
everyone thinks you should use a plugin to do your paginations. It seems
will_paginate is popular so I settled on that. It seems to have
installed just fine - all the files are there and there was no errors.
However, when I insert the code it doesn’t seem to like it.
I’m new to rails so I’m sure I’ve just overlooked something simple - if
someone can help I’d be very grateful.
in my controller I have the following code
class ThumbController < ApplicationController
@thumbs = Thumb.paginate :page => params[:page], :per_page => 15
In my list view I have the following (btw this works fine with my simple
“@thumbs = Thumb.find(:all)” I had in my old controller.)
<% for thumb in @thumbs %><a href="<%= thumb.url %>"><img
src="/images/thumbs/<%= thumb.filename %>" target="_blank" alt=" "
border=“0” /><% end %>
<%= will_paginate @thumbs %>
As I say, I’ve probably just missed something dumb, but no matter how
many tutorials or examples I go through I can’t seem to figure what it
Thanks in advance to some kind soul