Skip to content

Commit a3062e6

Browse files
committed
Fixed 'generate resource' in wrong section
1 parent 99ecd20 commit a3062e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sites/intermediate-rails/create_a_new_rails_app_with_a_static_home_page.step

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ discussion do
1010
message <<-MARKDOWN
1111
* In order to have a static home page, you will need a route, a controller, a view. Discuss!
1212
* Seriously. If you don't discuss this stuff, things will be SO much harder.
13-
* We’re using `rails g resource` instead of `rails g scaffold` because it forces you, the developer, to do more understanding-building brain work. The teacher/TAs can perhaps comment on what they would do in the real world and their thoughts on the excellence of this choice for learning-purposes.
13+
* Generators! Rails has lots of them. Try exploring the output of `rails generate`.
14+
* We’re not using `rails generate scaffold` in this curriculum. Because you will generate all your Models, Views and Controllers yourself, this will force you, to do more understanding-building brain work. The teacher/TAs can perhaps comment on what they would do in the real world and their thoughts on the excellence of this choice for learning-purposes.
1415
* What do you need to add to your home controller (after you've made it) to have a static home page?
1516
* How does the home/index.html.erb view file relate to the layouts/application.html.erb view file?
1617
* What’s the significance of yield in the application view?

0 commit comments

Comments
 (0)