-
Notifications
You must be signed in to change notification settings - Fork 0
Implementation of lookup codes for Active Record, creates Rails model and view helpers
See the wiki here
License
fjfish/has_lookup_extension
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Has Lookup Extension =================== What is it for? =============== Rather than storing a list of things in the database as strings, e.g. Mr, Mrs and so on, instead we store an integer value that we can look up to get the true value. This is done for a number of reasons, e.g. it is easy to change the meaning of a code without having to update large tables, storing an integer is a lot less space than a string and so on. It is also easy to translate a site if needed, but this plugin isn't sophisticated enough to support multiple languates. It does have some disadvantages in that you need to know what the magic number means and it can make writing queries a pain. The plugin has methods that will help with this. For more information look in the file doc/introduction.rtf This Rails plugin can be installed with the command: script/plugin install git://github.com/fjfish/has_lookup_extension.git Francis Fish, Pharmarketeer, released under the MIT license
About
Implementation of lookup codes for Active Record, creates Rails model and view helpers
See the wiki here
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published