Class: ServicesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/services_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

caches_page_with_cache_marker, #raise_not_found!

Instance Method Details

#indexObject



9
10
11
12
13
# File 'app/controllers/services_controller.rb', line 9

def index
  @services = @structure.children
  # @rates = ReviewRate.visible.sorted.limit(3)
  respond_with @services
end

#showObject



15
16
17
# File 'app/controllers/services_controller.rb', line 15

def show
  respond_with @structure
end