Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ gem "thruster", require: false
gem "vite_rails", "~> 3.0"

# Error tracking with Sentry for production deployments
gem "sentry-ruby", "~> 5.22"
gem "sentry-rails", "~> 5.22"
gem "sentry-ruby", "~> 6.6"
gem "sentry-rails", "~> 6.6"

# The Rails adapter for Inertia.js [https://inertia-rails.dev]
gem "inertia_rails", "~> 3.6"
gem "inertia_rails", "~> 3.21"

# Clerk SDK for authentication
gem "clerk-sdk-ruby", require: "clerk"
Expand Down
154 changes: 77 additions & 77 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,20 @@ GEM
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
addressable (2.9.0)
public_suffix (>= 2.0.2, < 8.0)
ast (2.4.3)
base64 (0.3.0)
bcrypt (3.1.20)
bcrypt_pbkdf (1.1.1)
bcrypt (3.1.22)
bcrypt_pbkdf (1.1.2)
bigdecimal (4.1.2)
bindex (0.8.1)
bootsnap (1.18.6)
bootsnap (1.24.6)
msgpack (~> 1.2)
brakeman (8.0.4)
racc
builder (3.3.0)
bullet (8.1.2)
bullet (8.1.3)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.11)
capybara (3.40.0)
Expand All @@ -102,48 +102,48 @@ GEM
xpath (~> 3.2)
childprocess (5.1.0)
logger (~> 1.5)
clerk-http-client (2.0.0)
faraday (>= 1.0.1, < 3.0)
faraday-multipart
marcel
clerk-sdk-ruby (4.2.1)
clerk-http-client (~> 2.0)
concurrent-ruby (~> 1.1)
faraday (>= 1.4.1, < 3.0)
jwt (~> 2.5)
clerk-sdk-ruby (5.1.3)
base64 (>= 0.2.0, < 1.0)
concurrent-ruby (~> 1.3.5)
faraday (>= 2.14.1)
faraday-multipart (~> 1.2.0)
faraday-retry (~> 2.4.0)
jwt (~> 3.0)
concurrent-ruby (1.3.6)
connection_pool (3.0.2)
crass (1.0.6)
csv (3.3.5)
date (3.5.1)
debug (1.11.0)
debug (1.11.1)
irb (~> 1.10)
reline (>= 0.3.8)
diff-lcs (1.6.2)
docile (1.4.1)
dotenv (3.1.8)
dotenv (3.2.0)
drb (2.2.3)
dry-cli (1.4.1)
ed25519 (1.4.0)
erb (6.0.4)
erubi (1.13.1)
et-orbi (1.2.11)
et-orbi (1.4.0)
tzinfo
factory_bot (6.5.4)
factory_bot (6.6.0)
activesupport (>= 6.1.0)
factory_bot_rails (6.5.0)
factory_bot_rails (6.5.1)
factory_bot (~> 6.5)
railties (>= 6.1.0)
faraday (2.13.4)
faraday (2.14.2)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-multipart (1.1.1)
faraday-multipart (1.2.0)
multipart-post (~> 2.0)
faraday-net_http (3.4.1)
net-http (>= 0.5.0)
fugit (1.11.1)
et-orbi (~> 1, >= 1.2.11)
faraday-net_http (3.4.4)
net-http (~> 0.5)
faraday-retry (2.4.0)
faraday (~> 2.0)
fugit (1.12.2)
et-orbi (~> 1.4)
raabro (~> 1.4)
globalid (1.3.0)
activesupport (>= 6.1)
Expand All @@ -157,24 +157,24 @@ GEM
multi_xml (>= 0.5.2)
i18n (1.14.8)
concurrent-ruby (~> 1.0)
inertia_rails (3.10.0)
inertia_rails (3.21.1)
railties (>= 6)
io-console (0.8.2)
irb (1.18.0)
pp (>= 0.6.0)
prism (>= 1.3.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
jbuilder (2.14.1)
jbuilder (2.15.1)
actionview (>= 7.0.0)
activesupport (>= 7.0.0)
js-routes (2.3.5)
js-routes (2.3.7)
railties (>= 5)
sorbet-runtime
json (2.19.7)
jwt (2.10.2)
json (2.19.8)
jwt (3.2.0)
base64
kamal (2.7.0)
kamal (2.11.0)
activesupport (>= 7.0)
base64 (~> 0.2)
bcrypt_pbkdf (~> 1.0)
Expand Down Expand Up @@ -210,13 +210,13 @@ GEM
minitest (6.0.6)
drb (~> 2.0)
prism (~> 1.5)
msgpack (1.8.0)
msgpack (1.8.1)
multi_xml (0.9.1)
bigdecimal (>= 3.1, < 5)
multipart-post (2.4.1)
mutex_m (0.3.0)
net-http (0.6.0)
uri
net-http (0.9.1)
uri (>= 0.11.1)
net-imap (0.6.4)
date
net-protocol
Expand All @@ -230,7 +230,7 @@ GEM
net-ssh (>= 5.0.0, < 8.0.0)
net-smtp (0.5.1)
net-protocol
net-ssh (7.3.0)
net-ssh (7.3.2)
nio4r (2.7.5)
nokogiri (1.19.3-aarch64-linux-gnu)
racc (~> 1.4)
Expand All @@ -251,25 +251,25 @@ GEM
parser (3.3.11.1)
ast (~> 2.4.1)
racc
pg (1.6.1)
pg (1.6.1-aarch64-linux)
pg (1.6.1-aarch64-linux-musl)
pg (1.6.1-arm64-darwin)
pg (1.6.1-x86_64-linux)
pg (1.6.1-x86_64-linux-musl)
pg (1.6.3)
pg (1.6.3-aarch64-linux)
pg (1.6.3-aarch64-linux-musl)
pg (1.6.3-arm64-darwin)
pg (1.6.3-x86_64-linux)
pg (1.6.3-x86_64-linux-musl)
pp (0.6.3)
prettyprint
prettyprint (0.2.0)
prism (1.9.0)
propshaft (1.2.1)
propshaft (1.3.2)
actionpack (>= 7.0.0)
activesupport (>= 7.0.0)
rack
psych (5.4.0)
date
stringio
public_suffix (6.0.2)
puma (6.6.1)
public_suffix (7.0.5)
puma (8.0.2)
nio4r (~> 2.0)
raabro (1.4.0)
racc (1.8.1)
Expand Down Expand Up @@ -327,24 +327,24 @@ GEM
resend (1.3.0)
base64
httparty (>= 0.22.0)
rexml (3.4.1)
rspec-core (3.13.5)
rexml (3.4.4)
rspec-core (3.13.6)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.5)
rspec-mocks (3.13.8)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (8.0.2)
rspec-rails (8.0.4)
actionpack (>= 7.2)
activesupport (>= 7.2)
railties (>= 7.2)
rspec-core (~> 3.13)
rspec-expectations (~> 3.13)
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.4)
rspec-core (>= 3.13.0, < 5.0.0)
rspec-expectations (>= 3.13.0, < 5.0.0)
rspec-mocks (>= 3.13.0, < 5.0.0)
rspec-support (>= 3.13.0, < 5.0.0)
rspec-support (3.13.7)
rubocop (1.87.0)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
Expand Down Expand Up @@ -374,44 +374,45 @@ GEM
rubocop-performance (>= 1.24)
rubocop-rails (>= 2.30)
ruby-progressbar (1.13.0)
rubyzip (3.0.1)
rubyzip (3.3.1)
securerandom (0.4.1)
selenium-webdriver (4.35.0)
selenium-webdriver (4.44.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 4.0)
websocket (~> 1.0)
sentry-rails (5.26.0)
railties (>= 5.0)
sentry-ruby (~> 5.26.0)
sentry-ruby (5.26.0)
sentry-rails (6.6.0)
railties (>= 5.2.0)
sentry-ruby (~> 6.6.0)
sentry-ruby (6.6.0)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
logger
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.2)
simplecov_json_formatter (0.1.4)
solid_cable (3.0.12)
solid_cable (4.0.0)
actioncable (>= 7.2)
activejob (>= 7.2)
activerecord (>= 7.2)
railties (>= 7.2)
solid_cache (1.0.7)
solid_cache (1.0.10)
activejob (>= 7.2)
activerecord (>= 7.2)
railties (>= 7.2)
solid_queue (1.2.1)
solid_queue (1.4.0)
activejob (>= 7.1)
activerecord (>= 7.1)
concurrent-ruby (>= 1.3.1)
fugit (~> 1.11.0)
fugit (~> 1.11)
railties (>= 7.1)
thor (>= 1.3.1)
sorbet-runtime (0.5.12366)
sshkit (1.24.0)
sorbet-runtime (0.6.13274)
sshkit (1.25.0)
base64
logger
net-scp (>= 1.1.2)
Expand All @@ -420,10 +421,10 @@ GEM
ostruct
stringio (3.2.0)
thor (1.5.0)
thruster (0.1.15)
thruster (0.1.15-aarch64-linux)
thruster (0.1.15-arm64-darwin)
thruster (0.1.15-x86_64-linux)
thruster (0.1.21)
thruster (0.1.21-aarch64-linux)
thruster (0.1.21-arm64-darwin)
thruster (0.1.21-x86_64-linux)
timeout (0.6.1)
tsort (0.2.0)
tzinfo (2.0.6)
Expand All @@ -443,11 +444,10 @@ GEM
mutex_m
rack-proxy (~> 0.6, >= 0.6.1)
zeitwerk (~> 2.2)
web-console (4.2.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
web-console (4.3.0)
actionview (>= 8.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
railties (>= 8.0.0)
websocket (1.2.11)
websocket-driver (0.8.0)
base64
Expand Down Expand Up @@ -478,7 +478,7 @@ DEPENDENCIES
debug
factory_bot_rails
hashid-rails (~> 1.0)
inertia_rails (~> 3.6)
inertia_rails (~> 3.21)
jbuilder
js-routes
kamal
Expand All @@ -494,8 +494,8 @@ DEPENDENCIES
rubocop-performance
rubocop-rails-omakase
selenium-webdriver
sentry-rails (~> 5.22)
sentry-ruby (~> 5.22)
sentry-rails (~> 6.6)
sentry-ruby (~> 6.6)
simplecov
solid_cable
solid_cache
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title inertia><%= content_for(:title) || "Inertia Rails Shadcn Starter" %></title>
<title data-inertia><%= content_for(:title) || "Inertia Rails Shadcn Starter" %></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
Expand Down
7 changes: 7 additions & 0 deletions config/initializers/inertia_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
config.encrypt_history = true

config.parent_controller = "::InertiaController"

# Required by the Inertia.js v3 client protocol (see the v3 upgrade guide):
# serialize the initial page in a <script> element, mark Inertia-managed head
# tags with `data-inertia`, and always include the errors hash in props.
config.use_script_element_for_initial_page = true
config.use_data_inertia_head_attribute = true
config.always_include_errors_hash = true
end
Loading
Loading