Class: TicketsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tickets_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#home, #mining_profile, #privacy_policy, #terms

Instance Method Details

#createObject

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

#indexObject

GET /tickets or /tickets.json



8
9
10
# File 'app/controllers/tickets_controller.rb', line 8

def index
  @tickets = Ticket.all
end

#newObject

GET /tickets/new



17
18
19
# File 'app/controllers/tickets_controller.rb', line 17

def new
  @ticket = Ticket.new
end

#showObject

GET /tickets/1 or /tickets/1.json



13
14
# File 'app/controllers/tickets_controller.rb', line 13

def show
end