- Have a default order for each model -- The overall default is ID DESC - Allow for custom orderings -- When comma-separated IDs are used
9 lines
240 B
Ruby
9 lines
240 B
Ruby
class ModActionsController < ApplicationController
|
|
respond_to :html, :xml, :json
|
|
|
|
def index
|
|
@mod_actions = ModAction.search(params[:search]).paginate(params[:page], :limit => params[:limit])
|
|
respond_with(@mod_actions)
|
|
end
|
|
end
|