Thursday, June 04, 2026 5:11:40 AM
> project show esm_website_v1
The unexpected heart of the ESM ecosystem. What started as a simple Rails dashboard has evolved into the command center for thousands of gaming communities, proving that sometimes the best infrastructure projects are the ones you never planned to build.
Details
> application_helper.rb
# frozen_string_literal: true

module ApplicationHelper
  def render_component(klass, **locals, &block)
    component = klass.new(current_user:, &block).tap do |component|
      component.on_load(**locals) if component.respond_to?(:on_load)
    end

    render(component)
  end

  def link_to_tab(*, **args, &)
    link_to(*, args.merge(target: "_blank"), &)
  end

  def digest(data)
    Digest::SHA256.hexdigest(data)[0..24]
  end

  def nav_spacer
    safe_join([
      content_tag(:hr, nil, class: "hr.d-block.d-lg-none"),
      link_to("-", "", class: "nav-link disabled d-none d-lg-block")
    ])
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 4294fb2