Your journey

No account required

Get your Rails app running natively

Skip this step

Use the demo app you just installed to check out your own product.

Not the one who touches code? Send these steps to my developer.

1

Add Ruby Native to your app

Add Ruby Native to your Gemfile and run the install generator. It creates config/ruby_native.yml with a starter tab bar and colors, and allows the preview tunnel host in development.

Terminal

$ bundle add ruby_native

$ bin/rails generate ruby_native:install

2

Start the preview tunnel

With your Rails server running on port 3000, install cloudflared and start the preview. It opens a public tunnel and prints a QR code.

Terminal

$ brew install cloudflare/cloudflare/cloudflared

$ bundle exec ruby_native preview

3

Preview your app

Long-press the Ruby Native app icon on your phone, tap Switch website, and scan the QR code from your terminal. Your Rails app is now running on your phone.

Terminal

$ bundle exec ruby_native preview

Tunnel connected. Scan this QR code:

https://your-tunnel.trycloudflare.com

Heads up: It probably looks a little rough right now, like your website inside a native shell. That's expected. The next step adds the polish.