Skip to content
You know it. You love it. Now it's on github. As dumb as ever.
Branch: master
Clone or download
Pull request Compare This branch is 21 commits ahead of lazyatom:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
data/sounds
lib
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
Rakefile
acts_as_hasselhoff.gemspec

README.md

Acts As Hasselhoff

The Hoff

Your application is now powered by HOFF!!!

CAUTION: with great chest hair comes great responsibility.

Installation

Add this line to your Rails application's Gemfile:

gem 'acts_as_hasselhoff'

And then execute:

$ bundle

Usage

Once the gem is part of your Rails app it's pretty simple to use.

Just find a model you would like to have act as Hasselhoff and add:

# app/models/post.rb

class Post < ActiveRecord::Base
  acts_as_hasselhoff
end

Now go save a Post.

Video Demo

See It In Action!

The Truth

The hoff idea was stolen from James Adam's original acts_as_hasselhoff plugin. I felt the burning need to make it work with Rails 4 and above, so, here it is. James fully approves of the continuation of this lunacy.

Contributing

  1. Fork it ( https://github.com/mariozig/acts_as_hasselhoff/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
You can’t perform that action at this time.