Files
growstuff/app/controllers/data_controller.rb
Brenda 42e225469a Routes using slugs (instead of ids)
this seems to be intended by the models having slugs (added about 7 years ago) but the routes weren't using them
2019-12-26 23:30:23 +00:00

14 lines
352 B
Ruby

# frozen_string_literal: true
class DataController < ApplicationController
abstract
before_action :authenticate_member!, except: %i(index show)
load_and_authorize_resource id_param: :slug
after_action :expire_homepage, only: %i(create update destroy)
respond_to :html, :json
respond_to :csv, :rss, only: [:index]
responders :flash
end