Class: Xhive::WidgetsController

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

Instance Method Summary collapse

Methods included from Controller

#current_controller, extended

Instance Method Details

#showObject



5
6
7
8
9
10
11
12
# File 'app/controllers/xhive/widgets_controller.rb', line 5

def show
  # Looks for a route matching the request path
  route = extract_route
  parameters = extract_parameters(route)
  render :text => rendered_cell_content(route, parameters), :status => 200
rescue => e
  render :text => 'Not found', :status => 404
end