My favorites | Sign in
Project Home Wiki Issues Source
Search
for
Howto  
Updated May 22, 2008 by christia...@gmail.com

How to use ActiveOIO

First, see the see README file

Install

Checkout project into your rails app's plugins folder:

svn co https://oiorest.googlecode.com/svn/trunk vendor/plugins/active_oio

Implemented models

kommune

adresse

lokalitet

postdistrikt

region

skole

skoledistrikt

sogn

valgdistrikt

Find all

Kommune.find(:all)

Find one

Postdistrikt.find(8830)

Search by name

Postdistrikt.find_by_name('borg')

Adresser

This 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
Powered by Google Project Hosting