ahoy_captain icon indicating copy to clipboard operation
ahoy_captain copied to clipboard

Issues while trying app

Open woodhull opened this issue 1 year ago • 1 comments

  • The syntax for the template configuration file is wrong.
AhoyCaptain.configure 

should be

AhoyCaptain.configure do |config|
  • Docs imply that I should run a generator to add additional indexes, but this task does not exist.

  • We do not use the turbo gem in our application. We do render some templates in background jobs. After installing the ahoy_captain gem those jobs get errors like this:

    NoMethodError:
       Could not render layout: undefined method `headers' for nil:NilClass
     # /usr/local/bundle/gems/turbo-rails-1.4.0/app/controllers/turbo/frames/frame_request.rb:34:in `turbo_frame_request_id'
     # /usr/local/bundle/gems/turbo-rails-1.4.0/app/controllers/turbo/frames/frame_request.rb:30:in `turbo_frame_request?'
     # /usr/local/bundle/gems/turbo-rails-1.4.0/app/controllers/turbo/frames/frame_request.rb:24:in `block (2 levels) in <module:FrameRequest>'
     # ./app/sidekiq/add_card_to_stage.rb:11:in `perform'

I'm not clear on why adding the ahoy_captain gem causes turbo gem code to be called outside of the engine itself.

woodhull avatar Aug 03 '23 01:08 woodhull