Class: ObjectsInWorldController

Inherits:
ApplicationController show all
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

Instance Method Details

#indexObject

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

#listObject

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

#showObject

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