https://github.com/existentialmutt/cable_modal_poc
https://github.com/existentialmutt/cable_modal_poc
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/existentialmutt/cable_modal_poc
- Owner: existentialmutt
- Created: 2021-06-30T03:07:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-04T14:00:25.000Z (about 5 years ago)
- Last Synced: 2025-09-01T23:43:38.759Z (11 months ago)
- Language: Ruby
- Size: 703 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cable Modal Proof of Concept

About 5 years ago I came up with an HTML-over-the-wire method for doing modal form workflows. I released it as a gem called [ajax_modal_rails](http://github.com/existentialmutt/ajax_modal_rails). I'm currently in the process of updating that gem to use mrujs, cable_car, and stimulus.
This is the proof of concept app, from which the new gem will be extracted.
The demo screencast shows a basic modal workflow:
1. Open the modal and load content
2. On validation error, reload content.
3. On form success either:
- dismiss the modal
- OR
- reload the underlying page.
All interactions are performed with mrujs decorated links and form submits that request CableReady custom operations from the server.