Class: RailsLiveDashboard::QueriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RailsLiveDashboard::QueriesController
- Defined in:
- app/controllers/rails_live_dashboard/queries_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 |
# File 'app/controllers/rails_live_dashboard/queries_controller.rb', line 3 def index @queries = Query.order(created_at: :desc) end |
#show ⇒ Object
7 8 9 |
# File 'app/controllers/rails_live_dashboard/queries_controller.rb', line 7 def show @query = Query.find(params[:id]) end |