An open API service indexing awesome lists of open source software.

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.

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)