You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[PingCRM with Vue and Vite](https://github.com/ledermann/pingcrm)
19
-
-[Starter template with React and Vite](https://github.com/BrandonShar/inertia-rails-template)
20
30
21
31
## Usage
22
32
@@ -65,12 +75,11 @@ end
65
75
In order to use instance props, you must call `use_inertia_instance_props` on the controller (or a base controller it inherits from). If any props are provided manually, instance props
66
76
are automatically disabled for that response. Instance props are only included if they are defined after the before filter is set from `use_inertia_instance_props`.
67
77
68
-
Automatic component name is also opt in, you must set the `default_render` config value to `true`. Otherwise, you can simply `render inertia: true` for the same behavior explicitly.
78
+
Automatic component name is also opt in, you must set the [`default_render`](#default_render) config value to `true`. Otherwise, you can simply `render inertia: true` for the same behavior explicitly.
69
79
70
80
### Layout
71
81
72
-
Inertia layouts use the rails layout convention and can be set or changed in the same way. The original `layout` config option is still functional, but will likely be deprecated in the future in favor
73
-
of using rails layouts.
82
+
Inertia layouts use the rails layout convention and can be set or changed in the same way.
74
83
75
84
```ruby
76
85
classEventsController < ApplicationController
@@ -135,20 +144,14 @@ end
135
144
}
136
145
```
137
146
138
-
Deep merging can be set as the project wide default via the InertiaRails configuration:
139
-
140
-
```ruby
141
-
# config/initializers/some_initializer.rb
142
-
InertiaRails.configure do |config|
143
-
config.deep_merge_shared_data =true
144
-
end
145
-
146
-
```
147
+
Deep merging can be configured using the [`deep_merge_shared_data`](#deep_merge_shared_data) configuration option.
147
148
148
-
If deep merging is enabled by default, it's possible to optout within the action:
149
+
If deep merging is enabled, you can still opt-out within the action:
0 commit comments