Rails-owned actions
Expose an explicit action allowlist and run host authorization before a handler can cause side effects.
Server actions
Render model-generated OpenUI Lang interfaces in Rails while keeping actions, authorization, and persistence on the server.
bundle add openui-rails --git https://github.com/yorzi/openui-rails --branch main
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.