fixed typo in destroying
This commit is contained in:
parent
892c15b64a
commit
5ad99e1cd8
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ class ConferenceRegistrationsController < ApplicationController
|
||||||
def destroy
|
def destroy
|
||||||
tickets_purchased = TicketPurchase.find_by(conference_id: @registration.conference_id)
|
tickets_purchased = TicketPurchase.find_by(conference_id: @registration.conference_id)
|
||||||
if @registration.destroy
|
if @registration.destroy
|
||||||
ticket_purchase.destroy
|
tickets_purchased.destroy
|
||||||
redirect_to root_path,
|
redirect_to root_path,
|
||||||
notice: "You are not registered for #{@conference.title} anymore!"
|
notice: "You are not registered for #{@conference.title} anymore!"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue