Changed physical_ticket to plural

This commit is contained in:
rishabhptr 2017-09-26 21:43:18 +05:30 committed by Stella Rouzi
parent 2247231d6e
commit 568d89b620
12 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
module Admin
class PhysicalTicketController < Admin::BaseController
class PhysicalTicketsController < Admin::BaseController
before_action :authenticate_user!
load_resource :conference, find_by: :short_title
load_and_authorize_resource

View file

@ -19,7 +19,7 @@ class PaymentsController < ApplicationController
if @payment.purchase && @payment.save
update_purchased_ticket_purchases
redirect_to conference_physical_ticket_index_path,
redirect_to conference_physical_tickets_path,
notice: 'Thanks! Your ticket is booked successfully.'
else
@total_amount_to_pay = Ticket.total_price(@conference, current_user, paid: false)

View file

@ -1,4 +1,4 @@
class PhysicalTicketController < ApplicationController
class PhysicalTicketsController < ApplicationController
before_action :authenticate_user!
load_resource :conference, find_by: :short_title
load_and_authorize_resource find_by: :token

View file

@ -12,7 +12,7 @@ class TicketPurchasesController < ApplicationController
redirect_to new_conference_payment_path,
notice: 'Please pay here to get tickets.'
elsif current_user.ticket_purchases.by_conference(@conference).paid.any?
redirect_to conference_physical_ticket_index_path,
redirect_to conference_physical_tickets_path,
notice: 'You have free tickets for the conference.'
else
redirect_to conference_tickets_path(@conference.short_title),