meta-tags-helpers icon indicating copy to clipboard operation
meta-tags-helpers copied to clipboard

Inheriting From ActionController::Base

Open richpeck opened this issue 9 years ago • 0 comments

This doesn't work unless you inherit from ApplicationController - do you have any recommendations?

We're setting up a simple admin area with a namespaced controller:

class Admin::ApplicationController < ActionController::Base
   before_action :set_meta_tags

   private

   def set_meta_tags
      set_meta title: "test"
   end
end```

This creates an issue where it will just not create the required tags on the page. Inheriting from `ApplicationController` resolves

richpeck avatar Sep 25 '14 19:09 richpeck