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/architectures_controller.rb
class ArchitecturesController < ApplicationController
def index
@architectures = Architecture.all(:include => :operatingsystems)
@search = Architecture.search(params[:search])
@architectures = @search.paginate(:page => params[:page], :include => :operatingsystems)
end
def new

Also available in: Unified diff