Class: ObjectsInWorldController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ObjectsInWorldController
- Defined in:
- app/controllers/objects_in_world_controller.rb
Overview
Contrôleur de gestion des ObjectInWorld
Ce contrôleur liste les ObjectInWorld.
Instance Method Summary collapse
-
#index ⇒ Object
Renvoie vers l’action ‘list’.
-
#list ⇒ Object
Liste des ObjectInWorld.
-
#show ⇒ Object
Détail d’un ObjectInWorld.
Instance Method Details
#index ⇒ Object
Renvoie vers l’action ‘list’
9 10 11 12 |
# File 'app/controllers/objects_in_world_controller.rb', line 9 def index list render :action => 'list' end |
#list ⇒ Object
Liste des ObjectInWorld
19 20 21 |
# File 'app/controllers/objects_in_world_controller.rb', line 19 def list @object_in_world_pages, @objects_in_world = paginate :objects_in_world, :per_page => 10 end |
#show ⇒ Object
Détail d’un ObjectInWorld
24 25 26 |
# File 'app/controllers/objects_in_world_controller.rb', line 24 def show @object_in_world = ObjectInWorld.find(params[:id]) end |