impress/app/controllers/pet_attributes_controller.rb

10 lines
217 B
Ruby

class PetAttributesController < ApplicationController
caches_page :index
def index
render :json => {
:color => Color.all_ordered_by_name,
:species => Species.all_ordered_by_name
}
end
end