Wednesday, July 15, 2026 2:44:46 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
> dashboards_helper.rb
# frozen_string_literal: true

module DashboardsHelper
  def channel_select(name, channels, options = {})
    selected_channel_id = options.delete(:selected)
    raw_options = tag.option(value: "")

    channels.each do |(category, channels)|
      if category
        raw_options += tag.option(value: "", disabled: true, style: "color-dark-gray") do
          "---#{category[:name]}---"
        end
      end

      channels.each do |channel|
        raw_options += tag.option(value: channel[:id], selected: channel[:id] == selected_channel_id) { channel[:name] }
      end
    end

    select_tag(name, raw_options, options)
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7