r38y / ck_fu
ck_fu
PublicAdds a development toolbar to your site that makes it easy to tell the difference between development, staging, and production.
11 filesupdated Jun 18, 2026
files9Download
./libJun 14, 2026./publicJun 14, 2026./specJun 14, 2026.gitignoreJun 14, 2026.gitmodulesJun 14, 2026init.rbJun 14, 2026MIT-LICENSEJun 14, 2026RakefileJun 14, 2026READMEJun 18, 2026README
CkFu
Where does the name ck_fu come from? It's a play on attachment_fu and I think curse words are funny.
This will put a bar across the top of your screen (except in production unless :if is specified and true) that shows the environment, databases, revision, etc. Why do we need something like this? because the development and staging sites often look identical to the production site. This makes it easy to tell the difference between the sites at a glance.
Example
- Run rake ck_fu:copy_styles
- Add ck_fu.css to your list of stylesheets
- Add the following directly below your <body> tag <%= ck_fu %>
More Advanced Usage
- ck_fu (default) will not show up in production
- If RAILS_ROOT/REVISION exists (created by capistrano when deploying) (can suppress with :revision => false)
- If RAILS_ROOT/DATE exists (can suppress with :date => false)
- Arbitrary links ck_fu(:links => [['Public site', root_path]])
- Display based on some condition like the current_user is an admin ck_fu(:if => current_user.try(:admin?)) - will display in production as well if the user is an admin.
For more information and screenshots, visit http://ck_fu.me
Copyright (c) 2008 umlatte LLC, released under the MIT license