This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Fri Sep 18 18:36:14 -0700 2009 | |
| |
README.markdown | Wed Sep 23 08:04:28 -0700 2009 | |
| |
Rakefile | Fri Sep 18 18:36:14 -0700 2009 | |
| |
about.yml | Thu Nov 19 06:26:13 -0800 2009 | |
| |
generators/ | Thu Nov 19 06:25:05 -0800 2009 | |
| |
init.rb | Wed Sep 23 08:41:59 -0700 2009 | |
| |
lib/ | Wed Sep 23 08:41:59 -0700 2009 | |
| |
test/ | Wed Sep 23 08:41:59 -0700 2009 |
README.markdown
acts_as_inviteable
A simple to use plugin for creating an invite system for an app.
Generator
Use the generator to get started:
script/generate invitations_for User
This will add 2 routes to your routes file (config/routes.rb) you may wish to edit these:
map.resource :invitation, :only => [:new, :create]
map.signup '/signup/:invite_code', :controller => 'users', :action => 'new'
It will also add acts_as_inviteable to your User model.
After running the generator you need to run rake db:migrate to add the invitations table and invitation_limit column.
Options
By default users are allowed to invite 5 others. You can customize this by providing an option to acts_as_inviteable.
Change how you call acts_as_inviteable in your users model by adding the default_invitation_limit option:
acts_as_inviteable :default_invitation_limit => 20
Copyright (c) 2009 Brian Landau (Viget Labs), released under the MIT license







