ruby
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ruby [2026/03/15 19:37] – Using Turbo Frames reddy | ruby [2026/04/19 20:59] (current) – reddy | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Popular Gems | Popular Gems | ||
| + | * [[EventMachine]] | ||
| * [[Kaminari]] | * [[Kaminari]] | ||
| * [[Ransack]] | * [[Ransack]] | ||
| Line 94: | Line 95: | ||
| </ | </ | ||
| + | ==== Turbo Streams ==== | ||
| + | < | ||
| + | # In the view | ||
| + | <%= turbo_stream_from " | ||
| + | <div id=" | ||
| + | |||
| + | # In a controller | ||
| + | Turbo:: | ||
| + | ' | ||
| + | target: ' | ||
| + | content: DateTime.now | ||
| + | ) | ||
| + | </ | ||
| + | |||
| + | ==== Action Text ==== | ||
| + | |||
| + | < | ||
| + | rails action_text: | ||
| + | rails db:migrate | ||
| + | |||
| + | # In the model | ||
| + | class Post < ApplicationRecord | ||
| + | has_rich_text :body | ||
| + | end | ||
| + | |||
| + | # In the form | ||
| + | <%= form.rich_textarea :body %> | ||
| + | </ | ||
ruby.1773599836.txt.gz · Last modified: by reddy
