Module: Databaseformalizer

Defined in:
lib/engine.rb,
lib/databaseformalizer.rb,
lib/application_controller.rb,
app/models/databaseformalizer/entity.rb,
app/models/databaseformalizer/attr_def.rb,
app/models/databaseformalizer/attr_val.rb,
app/models/databaseformalizer/entity_def.rb,
app/helpers/databaseformalizer/entities_helper.rb,
app/models/databaseformalizer/attr_vals_entity.rb,
app/helpers/databaseformalizer/attr_defs_helper.rb,
app/helpers/databaseformalizer/attr_vals_helper.rb,
app/models/databaseformalizer/attr_list_join_def.rb,
app/models/databaseformalizer/attr_list_join_val.rb,
app/helpers/databaseformalizer/application_helper.rb,
app/helpers/databaseformalizer/dbformahome_helper.rb,
app/helpers/databaseformalizer/entity_defs_helper.rb,
app/models/databaseformalizer/entity_def_attr_def.rb,
app/controllers/databaseformalizer/entities_controller.rb,
app/controllers/databaseformalizer/attr_defs_controller.rb,
app/controllers/databaseformalizer/attr_vals_controller.rb,
app/controllers/databaseformalizer/dbformahome_controller.rb,
app/controllers/databaseformalizer/entity_defs_controller.rb,
lib/rails/generators/databaseformalizer/templates/initializer.rb

Defined Under Namespace

Modules: ApplicationHelper, AttrDefsHelper, AttrValsHelper, Controller, Databaseformalizer, DbformahomeHelper, EntitiesHelper, EntityDefsHelper Classes: AttrDef, AttrDefsController, AttrListJoinDef, AttrListJoinVal, AttrVal, AttrValsController, AttrValsEntity, DbformahomeController, Engine, EntitiesController, Entity, EntityDef, EntityDefAttrDef, EntityDefsController

Class Method Summary collapse

Class Method Details

.extraRoutes(map) ⇒ Object

we define the routes there



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/databaseformalizer.rb', line 13

def extraRoutes(map)
  mount_at =  '/databaseformalizer'
  map.with_options(:path_prefix => mount_at, :name_prefix => "databaseformalizer_") do |t|
    t.resources :entities,    :controller => "databaseformalizer/entities"
    t.resources :entity_defs, :controller => "databaseformalizer/entity_defs"
    t.resources :attr_defs,   :controller => "databaseformalizer/attr_defs"
  end 
     
  map.databaseformalizer 'databaseformalizer', 
      :action => 'index', 
      :controller => 'databaseformalizer/dbformahome'

end