diff options
author | hellekin <hellekin@cepheide.org> | 2020-11-12 23:39:13 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-11-12 23:39:13 +0100 |
commit | 6c9922a87fb72b958b78014c45b6cd1efafdd30e (patch) | |
tree | c58addb0b39bafe5bc8aceebe659bb2cc86f3851 /app/controllers/taxonomies_controller.rb | |
parent | 8d9387cf64929b6467b6ba52f22ca0aa5ed35782 (diff) | |
download | incommon-map-6c9922a87fb72b958b78014c45b6cd1efafdd30e.tar.gz |
Add Stimulus Map and Taxonomy (WIP)
This commit add StimulusJS interaction for the map
and taxonomy, as well as styling.
It provides preliminary work to hook up live data on the map
from the taxonomy.
Diffstat (limited to 'app/controllers/taxonomies_controller.rb')
-rw-r--r-- | app/controllers/taxonomies_controller.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/taxonomies_controller.rb b/app/controllers/taxonomies_controller.rb new file mode 100644 index 0000000..f33595a --- /dev/null +++ b/app/controllers/taxonomies_controller.rb @@ -0,0 +1,11 @@ +class TaxonomiesController < ApplicationController + # GET /taxonomies + def index + @taxonomies = current_agent.taxonomies.order(:uuid).page params[:page] + end + + # GET /taxonomies/:id + def show + @taxonomy = Taxonomy.find_by(uuid: params[:id]) + end +end |