We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2435ae2 commit 9ea9b11Copy full SHA for 9ea9b11
docs/getting-started/quick-start.md
@@ -886,13 +886,14 @@ touch app/matestack/components/registry.rb
886
```ruby
887
module Components::Registry
888
889
- def post_component(post)
+ def post_component(post:)
890
Components::Post.(post: post)
891
end
892
893
894
```
895
896
+* [x] Adjust the index page to include the Components::Registry
897
* [x] Adjust the index page in order to use the component in the new way
898
899
`app/matestack/twitter_clone/posts/index.rb`
@@ -901,6 +902,8 @@ end
901
902
903
class TwitterClone::Pages::Posts::Index < Matestack::Ui::Page
904
905
+ include Components::Registry
906
+
907
def prepare
908
@posts = Post.all
909
0 commit comments