Class: Bumbleworks::Gui::EntitiesController
- Inherits:
-
ApplicationController
- Object
- Rory::Controller
- ApplicationController
- Bumbleworks::Gui::EntitiesController
- Defined in:
- lib/bumbleworks/gui/controllers/entities_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
8 9 10 11 |
# File 'lib/bumbleworks/gui/controllers/entities_controller.rb', line 8 def index expose :entity_class => entity_class, :entities => entity_class.all, :title => "Entity Types : #{entity_class}" end |
#show ⇒ Object
13 14 15 16 |
# File 'lib/bumbleworks/gui/controllers/entities_controller.rb', line 13 def show expose :entity => entity_class.first_by_identifier(params[:id]), :title => "Entity : #{entity_class}" end |
#types ⇒ Object
4 5 6 |
# File 'lib/bumbleworks/gui/controllers/entities_controller.rb', line 4 def types expose :entity_classes => Bumbleworks.entity_classes, :title => 'Entity Types' end |