Skip to content

Commit bfe3d19

Browse files
Update hello world guide to 0.7.0 naming convents
1 parent 473a1d5 commit bfe3d19

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

guides/hello_world.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ we will start by adding a file called `my_app.rb`!
1111
Put the following code inside it:
1212

1313
```ruby
14-
class Apps::MyApp < App::Cell::App
14+
class Apps::MyApp < Matestack::Ui::App
1515

1616
def response
1717
components {
@@ -37,7 +37,7 @@ In `app/matestack/pages/my_app/`, create a file called `my_example_page.rb` for
3737
Notice how we describe our User Interface with elements that resemble `HTML tags` - but we can also write Ruby just the way we want to!
3838

3939
```ruby
40-
class Pages::MyApp::MyExamplePage < Page::Cell::Page
40+
class Pages::MyApp::MyExamplePage < Matestack::Ui::Page
4141

4242
def response
4343
components {
@@ -63,9 +63,9 @@ This is straightforward and just works *the Rails way*.
6363
Inside `config/routes.rb`, add a route for the example page:
6464

6565
```ruby
66-
scope :my_app do
67-
get 'my_example_page', to: 'my_app#my_example_page'
68-
end
66+
scope :my_app do
67+
get 'my_example_page', to: 'my_app#my_example_page'
68+
end
6969
```
7070

7171
In `app/controllers/`, create a file called `my_app_controller.rb` and define our *action*:

0 commit comments

Comments
 (0)