order by collectino title

rails2
Espen Antonsen 2009-11-09 13:55:15 +01:00
parent 3e39940dfd
commit 225d68138e
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ class CollectionsController < ApplicationController
before_filter :require_role_admin, :only => [:new, :create, :edit, :update, :destroy]
def index
@collections = Collection.find(:all)
@collections = Collection.find(:all, :order => 'title')
respond_to do |format|
format.html
format.json { render :json => @collections }