|
Howto
How to use ActiveOIOFirst, see the see README file InstallCheckout project into your rails app's plugins folder: svn co https://oiorest.googlecode.com/svn/trunk vendor/plugins/active_oio Implemented modelskommune adresse lokalitet postdistrikt region skole skoledistrikt sogn valgdistrikt Find allKommune.find(:all) Find onePostdistrikt.find(8830) Search by namePostdistrikt.find_by_name('borg') AdresserThis is a finder with all possible search params. returns an Address-light, with a reduced subset of the full Adresse. Adresse.find(:all, :params => {:vejnavn => "lyongade", :husnr => "19", :postnr => "2300", :vejnr => "4492", :kommunenr => "101", :sognenr => "7084"}) direct access Adresse.find(9718) find the first hit -- fully expanded address object Adresse.find(:first,:params => {:vejnavn => "lyongade", :husnr => "19"}) |
► Sign in to add a comment