Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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.