order by collectino title

This commit is contained in:
Espen Antonsen 2009-11-09 13:55:15 +01:00
parent 3e39940dfd
commit 225d68138e

View file

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