Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Quick and easy habtm :through relationships in Rails
branch: master

This branch is 1 commit behind winton:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
generators/acts_as_relationable
lib
.gitignore
MIT-LICENSE
README.markdown
acts_as_relationable.gemspec
init.rb

README.markdown

acts_as_relationable

Automatically creates habtm :through relationships across multiple models using using a single join table.

Features

  • Can be self referential
  • Quickly define relationship-specific fields
  • Create relationships between STI models

Install

gem install winton-acts_as_relationable

Add to environment.rb

config.gem 'winton-acts_as_relationable', :lib => 'acts_as_relationable', :source => 'http://gems.github.com'

From your application directory

script/generate acts_as_relationable
rake db:migrate

Usage

Check out the wiki for usage examples.

Copyright © 2008 Winton Welsh
Something went wrong with that request. Please try again.