Sha256: 3c6a80d3cbb521caadddb9104eff3f3f5b3192d091d5bf98cbe6d8f82a42a4dc
Contents?: true
Size: 906 Bytes
Versions: 23
Compression:
Stored size: 906 Bytes
Contents
# C80MapFloors The gem adds interactive map (with floors) to a site. ## Installation Add this line to your host app's Gemfile: ```ruby gem 'historyjs-rails' gem 'bootstrap-sass', '~> 3.3.4' gem 'bootstrap-select-rails' gem 'c80_map_floors' ``` Host app's `application.js.coffee` requires: ``` #= require c80_map_floors ``` Add this to `application.scss`: ``` @import "c80_map_floors"; ``` Add this to host app's `application_controller.rb`: ``` helper C80MapFloors::Engine.helpers ``` Add this to `routes.rb`: ``` mount C80MapFloors::Engine => '/' ``` # Configure Use seeds: ``` $ rake db:seed:801_fill_map_settings ``` ## Start Create in host app's assets\javascripts: ```js $(document).ready(function() { if ($('#map_wrapper').length) { InitMap({ dnd_enable:false }); } }); ``` # Helpers ``` render_map ```
Version data entries
23 entries across 23 versions & 1 rubygems