Class: Exception2db::MainController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/exception2db/main_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



9
10
11
12
13
14
# File 'app/controllers/exception2db/main_controller.rb', line 9

def index
  @exception2dbs = E2db.paginate(:page => params[:page], :order => 'created_at desc')
  respond_to do |format|
    format.html
  end
end

#showObject



16
17
18
19
20
21
# File 'app/controllers/exception2db/main_controller.rb', line 16

def show
  @record = E2db.find(params[:id])
  respond_to do |format|
    format.html
  end
end