rack-flash icon indicating copy to clipboard operation
rack-flash copied to clipboard

If you're using Sinatra, you should use sinatra-flash instead.

Results 12 rack-flash issues
Sort by recently updated
recently updated
newest added

goes to http://gitrdoc.com/?f

I've been looking for a simple way to check if the flash is empty, but it does not provide any simple array/hash methods for that. Maybe adding an empty? method...

A minimal note on Readme file to test the flash value would be great. I found this way works for me (minitest, rack-test) ``` assert_equal 'my message', last_request.env['x-rack.flash'][:alert] ```

Flash keys are automatically converted to symbols. However symbols are not supported by JSON session cookies. ``` ruby require 'sinatra/base' require 'rack/flash' class Server < Sinatra::Application configure do use Rack::Session::Cookie,...

Hi, I wanted to be able to use this idiom in views: so I added the each method to FlashHash and made this pull request. I also added a basic...

This is necessary for running on rack 1.4.0. It's possible you'll want to retain backwards-compatibility, in which case it'd probably be easiest to check if @ins is nil and make...

To successfully run the tests in my Debian package, I have had to use this patch: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-rack-flash3.git;a=blob;f=debian/patches/extend_not_include_rack_test_methods.patch;hb=HEAD

It does not seem to be working with Sinatra 1.3.2 When just requiring rack-flash it throws this error: ``` ERROR NoMethodError: undefined method `

- Use Gemfile - Add development dependency to .gemspec - `extend Rack::Test::Methods`

Hi, In my sinatra app, I would like to be able to set a flash[:notice] message, then redirect, but it seems that the flash[:notice] is empty after a redirect. Is...