Skip to content

Commit

Permalink
Clarify Rails docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jho406 committed Feb 19, 2025
1 parent 283f0d9 commit 159b144
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/rails-utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Superglue typically requires 3 templates.
```
app/views/
posts/
index.html.erb # typically duplicated
index.html.erb # duplicated
index.jsx
index.json.props
users/
index.html.erb
index.html.erb # duplicated
index.jsx
index.json.props
```
Expand Down Expand Up @@ -46,15 +46,13 @@ app/views
index.json.props
```

and allow for `props` files for cases where you don't need props.
and omit `props` files for cases when there is no content.

```
app/views
application/
superglue.html.erb
posts/
index.jsx
users/
about/
index.jsx
```

Expand Down

0 comments on commit 159b144

Please sign in to comment.