ubik86 / pl_cities Goto Github PK
View Code? Open in Web Editor NEWModels and data for Polish cities, regions, communities, counties
License: MIT License
Models and data for Polish cities, regions, communities, counties
License: MIT License
= PL Cities This plugin contains ActiveRecord Models and fixtures for Polish cities, regions, communities and counties (miasta, województwa, gminy i powiaty). This is beta version. Please check and let me know if something doesn't work ;) == Install Plugin generator will generate migrations for tables named [city, community,county, region] so if you already have same tables you need to rename them! Migration & Data ./script/generate pl_cities rake db:migrate rake db:fixtures:load == Example >> city = City.find_by_name("Szczecin") => #<City id: 896, region_id: 32, county_id: 62, community_id: 1, name: "Szczecin", created_at: "2010-03-15 17:30:01", updated_at: "2010-03-15 17:30:01"> >> region = city.region => #<Region id: 16, country_id: 161, code: 32, name: "zachodniopomorskie", name_ext: "województwo", created_at: "2010-03-15 17:30:04", updated_at: "2010-03-15 17:30:04"> >> counties = region.communities List of communities in West Pomeranian Voivodship == Contact Any bugs, questions, comments please feel free to email me : [email protected] Copyright (c) 2010, Boguslaw Tarnowski, released under the MIT license
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.