thoughtbot/flutie — Issue #32: /styleguides available in production
Author: etdsoft
Created: 2011-12-03 12:25:22+00:00
State: open

Hey guys it seems that /styleguides is not restricted when running in production :!: (at least in Rails 3.1)

Steps to reproduce

```
$ rails new flutieapp && cd fluttieapp
$ vi Gemfile
# add gem 'flutie'
$ bundle install
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss
$ vi app/assets/stylesheets/application.css.scss
# edit to add @import 'flutie'
$ bundle exec rails assets:precompile
$ bundle exec rails s -e production
=> Booting WEBrick
=> Rails 3.1.3 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctr-C to shutdown server
```

And browse to

http://localhost:3000/styleguides