Skip to content

Commit 0e265e4

Browse files
authored
Fix docs (#204)
1 parent e5ce135 commit 0e265e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/guide/responses.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ With this configuration, the `app/frontend/pages/events/index.(jsx|vue|svelte)`
8787

8888
If the default component path doesn't match your convention, you can define a custom resolution method via the `component_path_resolver` config value. The value should be callable and will receive the path and action parameters, returning a string component path.
8989

90-
````ruby
90+
```ruby
9191
inertia_config(
9292
component_path_resolver: ->(path:, action:) do
9393
"Storefront/#{path.camelize}/#{action.camelize}"
9494
end
9595
)
96+
```
9697

9798
## Root template data
9899

@@ -106,7 +107,7 @@ There are situations where you may want to access your prop data in your ERB tem
106107
<% end %>
107108
108109
<div id="app" data-page="<%= page.to_json %>"></div>
109-
````
110+
```
110111

111112
Sometimes you may even want to provide data to the root template that will not be sent to your JavaScript page / component. This can be accomplished by passing the `view_data` option.
112113

0 commit comments

Comments
 (0)