David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said over 1 year ago on Kamal in GitHub Actions :
  Sigfrid  i don’t pass the SSH key in the deploy.yml file but rather in a GitHub action secret in their GUI.

David Kimura PRO said over 1 year ago on Kamal in GitHub Actions :
  Sigfrid I use the SSH Agent pack that will allow kamal to use it.

      - uses: webfactory/ssh-agent@v0.9.0
        with:
          ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

You may need to set up which ssh user in the deploy.yml

# Use a different ssh user than root
ssh:
  user: root

David Kimura PRO said over 1 year ago on ViewComponent :
I think that suggestion is great in many circumstances. In larger PORO (or components), I find that using an attr_reader or attr_accessor can break the readability of the code. Simply because an instance variable, at a glance will be something that you know is coming from an external source from the perspective of the object. But any local variables are likely a private method or something similar.

David Kimura PRO said over 1 year ago on Refreshing Turbo Frames :
Thanks for that. I thought I remembered there being a "built-in" way to do it, but couldn't remember it!

David Kimura PRO said over 1 year ago on Refreshing Turbo Frames :
Yea, in the controller, you'd basically render a turbo stream to replace the existing frame.