Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b037f3b
Add server managed meta tags to the page object
bknoles Apr 24, 2025
5814991
Add shared meta tags, similar to shared props
bknoles Apr 25, 2025
cfe6cfe
Naming things is important
bknoles Apr 25, 2025
9ace3a6
Local assigns doesn't work here so let's use a controller instance va…
bknoles Apr 26, 2025
fe2f02a
head-key is awkward to consume in JS and doesn't offer any benefits s…
bknoles Apr 26, 2025
e883dab
React and Vue both know how to deal with camelCase so let's use that …
bknoles May 1, 2025
aec6b0b
Instead of overloading the content key, use an inner_content for what…
bknoles May 2, 2025
a4cdedb
Allow a shortened version of the title meta tag
bknoles May 2, 2025
5a9b982
Only compute a single title tag
bknoles May 2, 2025
5750cd3
Refactor inertia meta to use a controller instance method instead of …
bknoles Jun 20, 2025
c24f7c6
Use props._inertia_meta instead of adding a meta key to the top level…
bknoles Jun 20, 2025
d72c4b4
Extra code cleanup from the redesign to use instance variables for me…
bknoles Jun 20, 2025
4dd85e0
Intelligently dedup meta tags without requiring head_key
bknoles Jun 24, 2025
7699952
Opt-out functionality for automatic meta tag de-duping
bknoles Jun 24, 2025
1ced781
Code cleanup
bknoles Jun 24, 2025
ffc13cb
De-duplication must come from the head key to work client side
bknoles Jun 25, 2025
52f7525
Allow clearing of meta tags
bknoles Jul 1, 2025
6983402
Add documentation for server managed meta tags
bknoles Jul 7, 2025
1bce73c
Add inertia tag to title with Svelte since server managed tags use it
bknoles Jul 7, 2025
19128cf
Prettier fixes for docs
bknoles Jul 7, 2025
69ad790
Small docs clarification
bknoles Jul 7, 2025
509f653
Appease the rubocop
bknoles Jul 7, 2025
248dd78
Fix method signature to match what earlier Rails versions expect
bknoles Jul 7, 2025
4fa9451
Wrap Vue meta tag component in a function
bknoles Jul 10, 2025
2dd80cc
Rework script tag safety. JSON-LD gets through, everything else gets …
bknoles Jul 10, 2025
3f6f530
Docs updates for JSON LD
bknoles Jul 10, 2025
8477de5
Update docs/guide/title-and-meta.md
bknoles Jul 10, 2025
c218b86
Use **options to simplify extentions
skryukov Jul 24, 2025
b918904
Nitpicks
skryukov Jul 24, 2025
39ef508
More refactorings
skryukov Jul 24, 2025
ab3145f
Rails 8, whats your problem?
skryukov Jul 24, 2025
c64ac77
Update rubocop todo
skryukov Jul 25, 2025
4643417
Update docs to guide users to avoid duplicate title tags when using I…
bknoles Jul 26, 2025
7772a69
Ensure default render path works with meta options
bknoles Jul 26, 2025
2645146
You win again, rubocop
bknoles Jul 26, 2025
26e335d
Use a constant for the meta property keys we use to generate head key…
bknoles Jul 29, 2025
509000b
thanks, rubocop. this one was a good suggestion.
bknoles Jul 29, 2025
dbae623
Add available since for server managed meta tags docs
bknoles Jul 30, 2025
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
16 changes: 8 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 10000`
# on 2025-04-10 07:56:29 UTC using RuboCop version 1.75.2.
# on 2025-07-25 08:41:37 UTC using RuboCop version 1.79.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down Expand Up @@ -44,7 +44,7 @@ Layout/ExtraSpacing:
- 'spec/inertia/request_spec.rb'
- 'spec/inertia/response_spec.rb'

# Offense count: 2
# Offense count: 16
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Expand Down Expand Up @@ -184,8 +184,8 @@ Style/BlockDelimiters:
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
# SupportedStyles: nested, compact
# SupportedStylesForClasses: , nested, compact
# SupportedStylesForModules: , nested, compact
# SupportedStylesForClasses: ~, nested, compact
# SupportedStylesForModules: ~, nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'lib/inertia_rails/helper.rb'
Expand Down Expand Up @@ -404,7 +404,7 @@ Style/SoleNestedConditional:
Exclude:
- 'lib/inertia_rails/controller.rb'

# Offense count: 78
# Offense count: 81
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Expand Down Expand Up @@ -434,7 +434,7 @@ Style/StringLiterals:
- 'spec/inertia/rspec_helper_spec.rb'
- 'spec/rails_helper.rb'

# Offense count: 2
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: .
# SupportedStyles: percent, brackets
Expand Down Expand Up @@ -466,9 +466,9 @@ Style/TrailingCommaInHashLiteral:
- 'spec/inertia/response_spec.rb'
- 'spec/inertia/rspec_helper_spec.rb'

# Offense count: 19
# Offense count: 32
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
# URISchemes: http, https
Layout/LineLength:
Max: 276
9 changes: 9 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,15 @@ export default defineConfig({
{ text: 'Inertia Modal', link: '/cookbook/inertia-modal' },
],
},
{
text: 'Inertia-Rails-Only Features',
items: [
{
text: 'Server Managed Meta Tags',
link: '/cookbook/server-managed-meta-tags',
},
],
},
{
text: 'Troubleshooting',
items: [
Expand Down
Loading