Skip to content
This repository

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.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.