Ruby Native reads your pages through signals: hidden elements carrying data-native-* attributes that tell the app to show a tab bar, a navigation bar, a badge, and so on. The helpers in your views render them for you.
Signals are ignored when the app does not recognize them. That is what lets the same page work in a browser and in the app, and it is why a mistyped signal never raises anything. The page renders, the app opens, and the tab bar is simply missing.
This page covers the two places Ruby Native tells you about that: a warning while you are testing, and a command you can run before a build. It also covers attaching a web inspector, for the bugs that live in your JavaScript rather than in a signal.
When you open your site in the Ruby Native app, it checks every page it renders and shows a warning toast when something looks wrong:
⚠️ Ruby Native: unknown data-native-tabss, duplicate data-native-form
It appears on both platforms, shows at most two problems with a +2 more suffix beyond that, and stays quiet if you revisit a page with the same problems. A new problem warns again.
This only ever appears in the Ruby Native app. Your own builds drop it silently, so your users never see it. That also means it will not help you once you have moved off ruby_native preview, which is what the next section is for.
ruby_native check reads every view in your app and reports the same problems, without waiting for someone to open the page:
bundle exec ruby_native check
app/views/layouts/native.html.erb
12: error Unknown signal `data-native-tabss`. Did you mean `data-native-tabs`?
31: warning 2 elements carry `data-native-form`; only the first one is used.
Checked 48 templates: 1 error, 1 warning.
It exits 1 on an error and 0 otherwise, and deploy runs it for you before triggering a build. See the CLI reference for the options.
check needs the herb gem, which Rails 8.2 and later already include through Action View. On earlier versions, add gem "herb" to your Gemfile.
Running it on every commit is the point, and it needs no token. See Continuous integration.
Some bugs only happen inside the app: a JavaScript error, a request that fails, a style that renders differently. You can attach the same developer tools you use in the browser to the web view in the Ruby Native app.
On iOS, use Safari on your Mac:
On Android, use Chrome on your computer. Turn on USB debugging in your phone's developer options, connect it, and open chrome://inspect in Chrome. The web view shows up under your device once your site is open in the app.
You get the console, the network tab, the element inspector, and breakpoints, the same as debugging a browser tab.
This only works in the Ruby Native app. Your own builds turn inspection off, so nobody can attach to the app your users install. To debug something that only happens in your build, reproduce it in the Ruby Native app first.
| Problem | What you see | Fix |
|---|---|---|
| Mistyped signal | Nothing happens | Use the helper (native_tabs_tag) rather than writing the attribute by hand |
| Duplicated signal | Only the first one works | Some signals are read once per page. Render it in one place, usually the layout |
| Signal is too new | Nothing happens | The signal was added in a later version of Ruby Native than your Gemfile has. Update the gem |
| Signal is newer than your build | Works locally, not for users | Your users have an older build. Deploy, or check with ruby_native check --deployed |
The most common cause is a layout that does not render it on every request. Ruby Native reads the page it is given, so a tab bar signal inside a conditional that is false, or in a layout that a particular action skips, reads as "this page has no tabs" and the app removes the tab bar accordingly.
Rendering the signal from your native layout, unconditionally, is the reliable shape:
<%# app/views/layouts/native.html.erb %>
<%= native_tabs_tag %>
If a signal should only apply to signed-in users, gate the whole layout rather than the signal inside it.
The gem in your Gemfile says what your views may emit. The build in the store says what your app can honor, and those drift apart as soon as you update the gem without deploying.
bundle exec ruby_native check --deployed
This compares your views against the most recent build for each platform and reports signals that will not work for anyone who has already installed your app. It needs you to be logged in, or RUBY_NATIVE_TOKEN set.
A coding agent can ask the same questions through the MCP server: check_views runs the checks above and returns a file and a line for each problem, and deployed_builds names the signals the build in the store is too old to understand.
Everything above is about a signal the app did not understand. This is the other failure: the app could not read your configuration at all, so it never got as far as your pages.
Your app fetches /native/config.json from your site every launch. An app that has loaded your config before opens from its saved copy, so a failed request or a config it cannot decode changes nothing for the people already using it. Someone opening the app for the first time has no copy to fall back on: they get the native error screen instead of your app, and the failure is reported to your Ruby Native dashboard. Android builds made before 0.21 show the error screen and report on every failed launch, saved copy or not. The most recent one shows as a banner on your app's page and on its builds page, with the full list under Config errors.
| What you see | What it means |
|---|---|
| Your site returned a 404 for /native/config.json. | The gem is not installed or not serving on the URL this build points at |
| Your site returned an error for /native/config.json. | The endpoint raised. Your Rails logs have the request |
| Your app could not parse your site's native config. | The config loaded but the app rejected it. See Configuration |
| Your app could not reach your site when it launched. | No connectivity, or your site was down |
A parse failure carries the reason with it, naming the key that broke: Missing required key 'path' in tabs[0]. That is the same class of mistake validate_config catches before a build, against the file rather than against a phone.
An app that fails on every launch on every device produces one report, not thousands: an identical failure updates the existing report's "last seen" time. The banner clears once the failure stops happening for 48 hours, or as soon as you dismiss it. The full list keeps the last week.
Config failures are reported even when you have turned off usage reporting. analytics: false suppresses the launch ping, and the app reads that flag out of the config it loaded. A config that never loaded is one whose flag the app never saw. A report carries your bundle ID, the app version and build number, the OS version, and the device model, and nothing about the person holding the phone.