I’m trying to modify railslist to work with Rails 3. I keep getting this error when trying to view /classifieds
TypeError (can’t convert nil into
Array)
app/controller/classifieds_controller.rb:in
‘index’
def index
@classifieds = Classified.paginate :page => params[:page], :order => "created_at DESC"
render :layout => 'main'
end
You need to use a pre-release version of will_paginate if you’re using Rails 3. Put the following in your Gemfile in place of what you had for will_paginate before: