ruby
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ruby [2026/04/04 10:23] – reddy | ruby [2026/04/19 20:59] (current) – reddy | ||
|---|---|---|---|
| Line 108: | Line 108: | ||
| content: DateTime.now | 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.1775291030.txt.gz · Last modified: by reddy
