Skip to content

Commit ca89730

Browse files
authored
Update README with Turbo Actions (#9)
1 parent c5e7918 commit ca89730

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,12 @@ import 'controllers'
140140

141141
### Browser Actions
142142

143-
* `turbo_stream.redirect_to(url, turbo_action = "advance", **attributes)`
144143
* `turbo_stream.reload(**attributes)`
145144
* `turbo_stream.scroll_into_view(target, inline = "nearest", **attributes)`
146145
* `turbo_stream.set_cookie(cookie, **attributes)`
147146
* `turbo_stream.set_cookie_item(key, value, **attributes)`
148147
* `turbo_stream.set_focus(target, **attributes)`
149148
* `turbo_stream.set_title(title, **attributes)`
150-
* `turbo_stream.turbo_clear_cache()`
151-
152149

153150
### Browser History Actions
154151

@@ -171,6 +168,11 @@ import 'controllers'
171168
* `turbo_stream.turbo_frame_reload(frame_id, **attributes)`
172169
* `turbo_stream.turbo_frame_set_src(frame_id, src, **attributes)`
173170

171+
### Turbo Actions
172+
173+
* `turbo_stream.redirect_to(url, turbo_action = "advance", **attributes)`
174+
* `turbo_stream.turbo_clear_cache()`
175+
174176
## Development
175177

176178
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

0 commit comments

Comments
 (0)