Ruby scaffolding

Soldato
Joined
18 Oct 2002
Posts
9,047
Location
London
I'm just trying out some things with RoR, and I want to change the number of results per page when using the scaffolding. This is what I have so far from a quick google, but I just get the normal 10 results.

Code:
class TvshowController < ApplicationController
  scaffold :tvshow

  def default_per_page
    50
  end
end

The ruby api seems to be down too
http://api.rubyonrails.org/
So if anyone has any ideas that'd be great!
 
Back
Top Bottom