Class: TicketsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- TicketsController
- Defined in:
- app/controllers/tickets_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /tickets or /tickets.json.
-
#index ⇒ Object
GET /tickets or /tickets.json.
-
#new ⇒ Object
GET /tickets/new.
-
#show ⇒ Object
GET /tickets/1 or /tickets/1.json.
Methods inherited from ApplicationController
#home, #mining_profile, #privacy_policy, #terms
Instance Method Details
#create ⇒ Object
POST /tickets or /tickets.json
22 23 24 25 26 |
# File 'app/controllers/tickets_controller.rb', line 22 def create return no_transactions_response if block_transactions.empty? create_ticket redirect_to tickets_path, notice: "Processing ticket, please wait, wait a minute and refresh the page" end |
#index ⇒ Object
GET /tickets or /tickets.json
8 9 10 |
# File 'app/controllers/tickets_controller.rb', line 8 def index @tickets = Ticket.all end |
#new ⇒ Object
GET /tickets/new
17 18 19 |
# File 'app/controllers/tickets_controller.rb', line 17 def new @ticket = Ticket.new end |
#show ⇒ Object
GET /tickets/1 or /tickets/1.json
13 14 |
# File 'app/controllers/tickets_controller.rb', line 13 def show end |