meta-tags-helpers
meta-tags-helpers copied to clipboard
Inheriting From ActionController::Base
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