Skip to main content
Image

r/ruby



Our best & brightest OLED ever
  • Image
    LG 77" Class OLED evo AI C6H 4K Smart TV 2026
  • Image
    LG 77" Class OLED evo AI C5 4K Smart TV 2025
  • Image
    LG 65" Class OLED evo AI C5 4K Smart TV 2025
  • Image
    LG OLED evo M Series 77" Class 4K Smart TV with Wireless Video & Audio Transfer
  • Image
    LG 55" Class OLED evo AI C5 4K Smart TV 2025
  • Image
    LG 65" Class OLED evo AI C6 4K Smart TV 2026


Ruby can render 3D surfaces, 2D density maps and GIS tiles without Python, NumPy or the JVM. I didn't expect it to work this well.
Ruby can render 3D surfaces, 2D density maps and GIS tiles without Python, NumPy or the JVM. I didn't expect it to work this well.
  • Image
    r/ruby - Ruby can render 3D surfaces, 2D density maps and GIS tiles without Python, NumPy or the JVM. I didn't expect it to work this well.
  • Image
    r/ruby - Ruby can render 3D surfaces, 2D density maps and GIS tiles without Python, NumPy or the JVM. I didn't expect it to work this well.
  • Image
    r/ruby - Ruby can render 3D surfaces, 2D density maps and GIS tiles without Python, NumPy or the JVM. I didn't expect it to work this well.
  • Image
    r/ruby - Ruby can render 3D surfaces, 2D density maps and GIS tiles without Python, NumPy or the JVM. I didn't expect it to work this well.

Open-sourced our Rails 8.1 multi-tenant API backend (MIT) โ€” extracted from a production app
Open-sourced our Rails 8.1 multi-tenant API backend (MIT) โ€” extracted from a production app
Open-sourced our Rails 8.1 multi-tenant API backend (MIT) โ€” extracted from a production app

Hi r/rails ๐Ÿ‘‹

We just open-sourced the Rails 8.1 API backend that powers our native iOS + Android template (NativeAppTemplate). It's extracted from MyTurnTag Creator โ€” a real app shipping to real users on the App Store and Google Play.

Repo: https://github.com/nativeapptemplate/nativeapptemplateapi

Stack highlights:

  • Rails 8.1 with Solid Queue / Cache / Cable

  • PostgreSQL

  • Path-based multitenancy (/:account_id/) via acts_as_tenant

  • Token authentication via devise_token_auth

  • Authorization via Pundit

  • 205 Minitest tests across models, policies, serializers, controllers

  • render.yaml committed โ€” one-click deploy

  • Madmin admin panel

  • jsonapi-serializer for response shape

Why this might be interesting to you:

  • A working reference for path-based multitenancy in Rails (it's harder than it looks once you mix Pundit + acts_as_tenant + token auth)

  • An example of a Rails API serving multi-platform clients (real native iOS/Android, not WebViews)

  • Solid Queue / Cache / Cable wired up in a real app โ€” not just hello-world

Honest tradeoffs / things you might not love:

  • Opinionated structure โ€” won't suit every team

  • Multitenancy is account-scoped, not row-scoped (different needs require different patterns)

  • We use devise_token_auth, which is fine but not everyone's preferred auth approach

I'd love feedback on the multitenancy approach, the test structure, or anything else you spot. Happy to answer architecture questions.

upvotes comment