#Auto-complete tagging with Rails, PostgreSQL arrays, and Chosen: A complete example.
This is a working example of the technique outlined in a blog post on iamjohnellis.com. It describes how to set up "tagging" with auto-complete using Ruby on Rails, PostgreSQL's native array storage, and Chosen.js. It seeks to bridge the gap between the plethora of tutorials out there for Postgres's array storage and the actual implementation and use of those arrays on the front-end.
##Requirements
- Ruby
- Bundler
- PostgreSQL
##Run It
To get up and running, clone this repo to your directory of choice, then:
bundle install
And setup the database:
rake db:setup
Then fire it up:
rails s
##Thanks
- Freddy Rangel, my co-worker with whom I developed this technique
- Quickie app generated with Prelang
- UI made usable thanks to Chosen.js by the folks at Harvest
- Max, at StackOverflow for a nice workaround for a feature/bug in Rails' select form helper.