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.
The ruby api seems to be down too
http://api.rubyonrails.org/
So if anyone has any ideas that'd be great!
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!