Refinery CMS Features
A plugin for Refinery CMS to manage features. Features are small pieces of information geolocated.
Add the following line to your
gem 'refinerycms-features', '= 0.2', :require => 'features', :git => 'git://github.com/Vizzuality/refinerycms-features.git'
And then run
Now you'll be able to use the generator
script/rails generate refinery_features
This will create a migration and a
And the plugin will be ready to use.
An event is very simple:
meta field serializes all the metainformation, in a document-style object. It is used in combination with the Refinery setting
:feature_attributes, which contains a list of all the attributes and their type. For example:
location:string country:string references:text
All this fields are automatically added as getters and setters.
the_geom field contains all the geometric information related with the feature. Depending on the value of the Refinery setting
:feature_geom_type, it will be a point, a polygon, and so on...