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 | |
|---|---|---|---|
| |
.gitignore | Wed Jun 03 17:49:51 -0700 2009 | |
| |
MIT-LICENSE | Sun May 31 00:24:13 -0700 2009 | |
| |
README.markdown | Sun May 31 00:24:13 -0700 2009 | |
| |
Rakefile | Wed Jun 03 17:49:52 -0700 2009 | |
| |
init.rb | Sun May 31 00:24:13 -0700 2009 | |
| |
install.rb | Sun May 31 00:24:13 -0700 2009 | |
| |
lib/ | Sun May 31 01:42:30 -0700 2009 | |
| |
spec/ | Sun May 31 01:42:30 -0700 2009 | |
| |
tasks/ | Sun May 31 00:24:13 -0700 2009 | |
| |
uninstall.rb | Sun May 31 00:24:13 -0700 2009 |
README.markdown
FindByList
Little plugin that will return an array from an Active Record object ready to use in a select By default it uses the 'id' as the value and 'name' as the display field.
Example
To get all users User.list
If you want to select different fields for the list plugin to use, you can simply do
User.list(:id => 'another_id_field', :display => 'firstname')
Standard activerecord :conditions tags can also be used
User.list(:conditions => { :active => 1 } )
Or to put everything together
User.list(:id => 'another_id_field', :display => 'firstname', :conditions => { :active => 1 })
Copyright
Copyright (c) 2009 Mark Gandolfo, released under the MIT license







