I would like to move the following code to a model using named_scopes.
I cannot find a good example to show me the way name_scopes and
will_paginate go hand in hand.
@images = Image.paginate :page => params[:page],
:per_page => 10, :order => ‘created_at
Can anybody help me on this?