What is it for?
LookyLu gives you easy ability to generate an ActiveRecord object for lookup data, as well as the ability to populate that object with data.
For example, you need a State object that is an LU table for all of the states in the United States, then this gem is perfect for you.
How to use it
Using my example above of needing a State object:
Install LookyLu
gem install looky-lu
Or add to your gemfile
gem 'looky-lu'
Generate the ActiveRecord model and the needed migration
rails g lookylu:state
Populate the database with the 50 states plus D.C.
rails g lookylu:state_data State united_states
Migrate your database
rake db:migrate
Seed your database
rake db:seed
Additional Options
For generating the Model and migration
rails g lookylu:state -h
For generating the LU data
rails g lookylu:state_data -h
Current LU Data Available
- State
- United States
- Canada
Who are you?
We are Agape Red. Check us out
I'm a dev, I can help
Awesome! Thanks! Here are the steps I ask:
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Make sure the tests pass (
bundle exec rspec) - Coverage not 100%? Sounds like a problem
- Push to the branch (
git push origin my-new-feature) - Create new Pull Request

