Project

General

Profile

« Previous | Next » 

Revision d995ecb4

Added by Paul Kelly almost 14 years ago

  • ID d995ecb41af4d4cb394e89a12983dc168fcf97a3

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

View differences:

app/controllers/hostgroups_controller.rb
class HostgroupsController < ApplicationController
def index
@hostgroups = Hostgroup.all
@search = Hostgroup.search params[:search]
@hostgroups = @search.paginate :page => params[:page]
end
def new

Also available in: Unified diff