Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rack-flash unreliable. Incompatible with Rack > 1.3.6 #58

Closed
thehack opened this Issue · 3 comments

3 participants

@thehack

The book recommends gem 'rack-flash' for session-based notifications, but rack-flash doesn't work with up-do-date versions of rack. The sinatra-authentication gem also requires rack-flash.

solutions:

  1. Downgrade to a version of Rack pre 1.3.6
    Problem: It sets you up for more dependency problems.

  2. Use 'sinatra/flash'
    The author says the downside is that it does not work across different kinds of rack apps.

  3. Sinatra could include this functionality itself?

  4. tl;dr Maybe the best short-term solution for the book is just to post a warning about rack-flash, or recommend 'sinatra/flash' instead.

@learning

alternate for that is rack-flash3, check this out nakajima/rack-flash#8

@thehack

Yeah, I had tried that and ran into something undesirable - I don't remember what. I ended up using sinatra/flash on recommendation of one of the core team. I guess that is what the book should be recommending.

@zzak
Owner

For the time being, you can use rack-flash3 or sinatra-flash gems.

@zzak zzak closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.