Keep your components
Register an existing Partial or ViewComponent with a closed schema and explicit policies.
Register a component
Turn trusted Rails components into persistent, interactive tools. Start without AI and add an adapter when you need one.
Current release: 0.1.0.
bundle add rails_tool_views --version 0.1.0
After you register the tutorial ChoiceCard:
scope = RailsToolViews::Scope.new(actor: "alice", tenant: "demo")
surface = RailsToolViews.present(:choice_card, props: { title: "Next step" }, scope: scope)
RailsToolViews.restore(surface.id, scope: scope)
Build the complete example or understand the state boundary.