Demonstrate suspected asset prefix bug
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Asset Prefix Test

Purpose

The purpose of this app is to demonstrate a bug with Rails config.assets.prefix causing the session to become un-responsive.

Install

bundle
bundle exec rails server

Reproducing the bug

Open http://localhost:3000 in browser and try adding session keys. They should work.

To see the bug in action, switch to either the asset-prefix-one-deep or asset-prefix-two-deep branch.

git checkout asset-prefix-two-deep
bundle exec rails s

Now try setting session variables again. If you don't have any session variables set, you won't be able to add any. If on the other hand you already have one set, it can't be changed or removed.

Look at this commit to see what changes were made to make it start breaking.