Shopify Polaris + Ruby on Rails

Effortless Polaris Forms for Rails Developers

The definitive way to build merchant-facing interfaces. Clean, accessible, and deeply integrated with the Rails ecosystems.

_form.html.erb
<%= polaris_form_with(model: @post) do |form| %>
<%= form.text_field :title, label: "Title" %>
<%= form.text_area :desc, label: "Description" %>
<%= form.select :status, [["Draft", "draft"]], {}, { label: "Status" } %>
<%= form.check_box :featured, label: "Featured" %>
<%= form.submit "try it" %>
<% end %>
Real-time Preview
Draft Published try it

Quick Start

Add to Gemfile
bundle add polaris_form_builder
Import Components
<script src="https://cdn.shopify.com/shopifycloud/polaris.js"></script>
Set Default Builder
config.action_view.default_form_builder = PolarisFormBuilder::FormBuilder

Native Polaris

Pixel-perfect implementation of Shopify's design system, ensuring your apps look professional and trustworthy.

Ruby Idiomatic

Built as a first-class citizen of the Rails world. Use standard FormBuilder patterns with zero friction.

Fast & Modern

Highly optimized for modern Rails workflows, including Hotwire and Stimulus integration out of the box.