Class: Exception2db::MainController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Exception2db::MainController
- Defined in:
- app/controllers/exception2db/main_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
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 |