inertia_rails-contrib 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 538f62e25594155bf348405e5be004b5460d867e1a2c2f1827285d7734a9bbb2
|
4
|
+
data.tar.gz: 168e6478de2aea2ff5c6fcbb4e05caaf42dedd588b99638fd654efd255efdc41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8290166047be4c8c80cf00743d6d3328fc82c2e816a5719cc2e0f138c57236733e2271b30bb0ca2d5bd605674171b20bceff4fb2ec71b7cd58c355dfe06bcf80
|
7
|
+
data.tar.gz: b08b0a8d312f7192483ef7504a5c8dd3ce1b5f36a08fb26be76d8ff22435c5f7d67853fe31c3e86990fe217fab2a22c66b81910d9b487c55e45231ff34663e9c
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning].
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.1.1] - 2024-06-17
|
11
|
+
|
12
|
+
### Fixed:
|
13
|
+
|
14
|
+
- Add a missing bracket to the `React/Edit` template. ([@skryukov])
|
15
|
+
|
10
16
|
## [0.1.0] - 2024-06-11
|
11
17
|
|
12
18
|
- Initial release ([@iurev], [@skryukov])
|
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
A collection of extensions, developer tools, and the [community documentation](https://inertia-rails.netlify.app) for [Inertia's Rails adapter](https://github.com/inertiajs/inertia-rails).
|
4
4
|
|
5
|
+
<a href="https://evilmartians.com/?utm_source=inertia_rails-contrib&utm_campaign=project_page">
|
6
|
+
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Built by Evil Martians" width="236" height="54">
|
7
|
+
</a>
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
Install the gem and add to the application's Gemfile by executing:
|
@@ -128,7 +132,7 @@ And navigate to `http://127.0.0.1:5100/inertia-example` to see the example Inert
|
|
128
132
|
|
129
133
|
### Scaffold generator
|
130
134
|
|
131
|
-
`InertiaRailsContrib` also comes with a scaffold generator that generates a
|
135
|
+
`InertiaRailsContrib` also comes with a scaffold generator that generates a new resource with Inertia responses. To use it, execute the following command in the terminal:
|
132
136
|
|
133
137
|
```bash
|
134
138
|
bin/rails generate inertia:scaffold ModelName field1:type field2:type
|
@@ -16,11 +16,10 @@ export default function Edit({ <%= singular_table_name %> }) {
|
|
16
16
|
form.post(`<%= js_resource_path %>`, {
|
17
17
|
headers: { 'X-HTTP-METHOD-OVERRIDE': 'put' },
|
18
18
|
})
|
19
|
-
}}
|
20
19
|
<% else -%>
|
21
20
|
form.patch(`<%= js_resource_path %>`)
|
22
|
-
}
|
23
21
|
<% end -%>
|
22
|
+
}}
|
24
23
|
submitText="Update <%= human_name.downcase %>"
|
25
24
|
/>
|
26
25
|
|
@@ -17,11 +17,10 @@ export default function Edit({ <%= singular_table_name %> }) {
|
|
17
17
|
form.post(`<%= js_resource_path %>`, {
|
18
18
|
headers: { 'X-HTTP-METHOD-OVERRIDE': 'put' },
|
19
19
|
})
|
20
|
-
}}
|
21
20
|
<% else -%>
|
22
21
|
form.patch(`<%= js_resource_path %>`)
|
23
|
-
}
|
24
22
|
<% end -%>
|
23
|
+
}}
|
25
24
|
submitText="Update <%= human_name.downcase %>"
|
26
25
|
/>
|
27
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inertia_rails-contrib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Svyatoslav Kryukov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|