Skip to content
Discussion options

You must be logged in to vote

...and as luck would always have it, few moments later, I have found a way to achieve what I wanted. It doesn't look like the cleanest solution out there (I can't use turbo_frame_tag directly, nor is it generalized so that it works for all Rails ActionView calls), but it works:

module ActiveAdmin
  module Views
    class TurboFrameTag < ActiveAdmin::Component
      builder_method :turbo_frame_tag

      def build(attributes = {}, &)
        super(id: attributes[:param_name]) 
      end

      def tag_name = "turbo-frame"
    end
  end
end

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vfonic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant