Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A quick and dirty port of @brdrck's PHP SOPA Blackout code into a mountable Rails engine.
Ruby JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
lib
script
test
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.markdown
Rakefile
sopablackout.gemspec

README.markdown

This is a quick and dirty port of Jeff Broderick's (also @brdrck's) PHP SOPA Blackout code into a Rails mountable engine.

Installing it is super simple, just toss this in your Gemfile:

gem 'sopablackout', :git => "git@github.com:jakemarsh/sopablackout.git"

Then run

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).

  mount Sopablackout::Engine => "/"

Jeff 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

Something went wrong with that request. Please try again.