https://github.com/jakemarsh/sopablackout
A quick and dirty port of @brdrck's PHP SOPA Blackout code into a mountable Rails engine.
https://github.com/jakemarsh/sopablackout
Last synced: about 1 year ago
JSON representation
A quick and dirty port of @brdrck's PHP SOPA Blackout code into a mountable Rails engine.
- Host: GitHub
- URL: https://github.com/jakemarsh/sopablackout
- Owner: jakemarsh
- License: mit
- Created: 2012-01-18T01:10:10.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-18T13:01:18.000Z (over 14 years ago)
- Last Synced: 2025-06-16T22:04:25.788Z (about 1 year ago)
- Language: Ruby
- Homepage: http://brdrck.me/sopa
- Size: 141 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE
Awesome Lists containing this project
README
This is a quick and dirty port of [Jeff Broderick](http://brdrck.me)'s (also [@brdrck](http://twitter.com/brdrck)'s) [PHP SOPA Blackout code](http://) into a Rails mountable engine.
Installing it is super simple, just toss this in your `Gemfile`:
``` ruby
gem 'sopablackout', :git => "git@github.com:jakemarsh/sopablackout.git"
```
Then run
``` bash
bundle install
```
Then open up your `routes.rb` and mount the engine at a route, (obviously it probably makes sense to mount it to `"/"` so your whole site is blacked out).
``` ruby
mount Sopablackout::Engine => "/"
```
[Jeff](http://brdrck.me) really did an awesome job and 100% of the credit for anything you see here goes to him, I just needed it in Rails so I could use it on my site, so I thought I'd share.
You can see a preview of what this code will look like here: [http://brdrck.me/sopa](http://brdrck.me/sopa)