Revision d995ecb4
Added by Paul Kelly almost 14 years ago
- ID d995ecb41af4d4cb394e89a12983dc168fcf97a3
app/controllers/models_controller.rb | ||
---|---|---|
class ModelsController < ApplicationController
|
||
def index
|
||
@models = Model.all
|
||
@search = Model.search params[:search]
|
||
@models = @search.paginate :page => params[:page]
|
||
end
|
||
|
||
def new
|
Also available in: Unified diff
Ensure that all index views and controllers are consistent
Ensures that all controllers use @search in the index method
Ensure that all index views use pagination