funkensturm / acts_as_identifiable
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Sat Feb 14 03:14:15 -0800 2009 | |
| |
README.textile | ||
| |
Rakefile | Sat Feb 14 03:14:15 -0800 2009 | |
| |
init.rb | Sat Feb 14 03:14:15 -0800 2009 | |
| |
lib/ | ||
| |
test/ | Fri Feb 20 13:11:09 -0800 2009 |
README.textile
Introduction
Imagine something specific as this now. You have a list of users and you want to identify one of them without having to enter the exact 100% same user name.
So you use this small acts_as_identifiable plugin to work with your model:
class User < ActiveRecord::Base acts_as_identifiable :column => ‘my_username’ endAnd this is what it will do:
- Search for an exact match
- Search for an estimate match
- If only one user matched, return it
- If not, the user will have to provide more data
I just realize this is hard to explain!
Please rather refer to the Unit Test to see what I’m takling about.
Actually, even better, check out the demo application at www.github.com/funkensturm/funkengallery_demo :)

