Class: ResourceFull::Controllers::RoutesController

Inherits:
Base
  • Object
show all
Defined in:
lib/resource_full/controllers/routes_controller.rb

Instance Method Summary collapse

Methods inherited from Base

all_resources, controller_for, #model_class, #model_name

Instance Method Details

#find_all_routesObject



11
12
13
# File 'lib/resource_full/controllers/routes_controller.rb', line 11

def find_all_routes
  ResourceFull::Models::ResourcedRoute.find :all, params
end

#index_xmlObject



7
8
9
# File 'lib/resource_full/controllers/routes_controller.rb', line 7

def index_xml
  render :xml => find_all_routes.to_xml(:root => "routes")
end