- Add ticket selection functionality to event show page using Stimulus - Create ticket_selection_controller.js for handling ticket quantity changes - Update ticket card component and event show view to work with Stimulus - Add comprehensive comments to all JavaScript files for better maintainability - Remove dependent: :destroy from event ticket_types association
27 lines
788 B
JavaScript
Executable File
27 lines
788 B
JavaScript
Executable File
// This file is auto-generated by ./bin/rails stimulus:manifest:update
|
|
// Run that command whenever you add a new controller or create them with
|
|
// ./bin/rails generate stimulus controllerName
|
|
|
|
// Import the main Stimulus application
|
|
import { application } from "./application"
|
|
|
|
// Import all controllers
|
|
import LogoutController from "./logout_controller";
|
|
application.register("logout", LogoutController);
|
|
|
|
import CounterController from "./counter_controller"
|
|
application.register("counter", CounterController);
|
|
|
|
import FlashMessageController from "./flash_message_controller"
|
|
application.register("flash-message", FlashMessageController);
|
|
|
|
import TicketSelectionController from "./ticket_selection_controller"
|
|
application.register("ticket-selection", TicketSelectionController);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|