https://github.com/ronanduddy/blog_hotwire
Hotwire learnings
https://github.com/ronanduddy/blog_hotwire
hotwire-turbo learning ruby ruby-on-rails
Last synced: 2 months ago
JSON representation
Hotwire learnings
- Host: GitHub
- URL: https://github.com/ronanduddy/blog_hotwire
- Owner: ronanduddy
- Created: 2024-12-06T13:35:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-04T04:30:36.000Z (over 1 year ago)
- Last Synced: 2025-04-05T02:17:50.887Z (over 1 year ago)
- Topics: hotwire-turbo, learning, ruby, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 110 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
A learning project based on https://www.hotrails.dev/turbo-rails for Hotwire.
It uses devise for user auth. On sign up users can create posts. Depending on
the company they have created their account against, they will only see posts
belonging to that company.
There is are two post models `Post` and `TurboFramePost`. The latter is the main
one. I created two modeles for the one table just to lazily separate a non-turbo
frame approach (i.e. `Post`) from a SPA-like turbo frame approach (i.e.
`TurboFramePost`).
The views/frontend also subscribe to model changes via e.g.
`turbo_stream_from "super_posts"`.