Skip to content

OpenUI Rails OpenUI Lang in Rails, with server-owned actions.

Render model-generated OpenUI Lang interfaces in Rails while keeping actions, authorization, and persistence on the server.

Install

bundle add openui-rails --version 0.1.0

A First Look

The helper emits a mount element. The browser runtime renders the OpenUI Lang response.

<%= openui_surface(
  surface: {
    id: "support-42",
    response: 'root = TextContent("How can I help?")'
  }
) %>

Rails owns the record, runtime assets, actions, and authorization. The gem does not parse or render OpenUI Lang in Ruby.

Get started or read how OpenUI Rails works.