Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/superfly/rails-session-middleware
A sample application showing our Rails 4+ Session Middleware in action!
https://github.com/superfly/rails-session-middleware
rails rails-session-middleware routing session-management sessions
Last synced: 6 days ago
JSON representation
A sample application showing our Rails 4+ Session Middleware in action!
- Host: GitHub
- URL: https://github.com/superfly/rails-session-middleware
- Owner: superfly
- Created: 2017-04-25T00:03:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-25T20:06:45.000Z (over 7 years ago)
- Last Synced: 2025-01-11T12:19:01.249Z (13 days ago)
- Topics: rails, rails-session-middleware, routing, session-management, sessions
- Language: Ruby
- Size: 161 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Superfly Rails 4+ Session Middleware App
You can checkout a live demo of this repository [here](https://fly-rails-session.herokuapp.com/).
This application can be used to demonstrate Fly.io Rails 4+ Session Aware routing. We've written a big ol' article on the topic, you can [read it here](https://fly.io/articles/routing-via-http-headers-with-rails-4/).
Through this tutorial, we'll show you how to mount this app to `example.com/app`. After that, you'll be able to use Fly Middleware to route users visiting `example.com` directly to your application if their session contains a `userId` and to your marketing page if their session does not.
![Balloon Demo](app/assets/images/sessions.png)
You can [create an account](https://fly.io) and explore Fly for free.