You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy the rails new info to both With/Without sections
Since the With Docker section is much longer due to the content that has to be copied into files, it felt really weird to be reading about `rails new` and that it would take awhile to run and output a lot of info. I included this with slightly different wording for the With Docker section since it uses `.` as the rails app name which means the current directory.
Copy file name to clipboardExpand all lines: sites/en/intro-to-rails/getting_started.step
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,8 @@ steps do
43
43
step do
44
44
option "Without Docker" do
45
45
console "rails new suggestotron"
46
+
message "`rails new` creates a new Rails project with the name you give. In this case we told it to create a new project called `suggestotron`. We'll go into detail on what it created shortly."
47
+
message "This will print a lot of stuff to the screen and can take a while to finish."
46
48
console "cd suggestotron"
47
49
message "`cd suggestotron` makes suggestotron our current directory."
48
50
end
@@ -99,6 +101,7 @@ steps do
99
101
CONTENTS
100
102
message "Build your rails app:"
101
103
console "docker-compose run web rails new . --force --database=postgresql"
104
+
message "The `rails new` command creates a Rails project with the name you give. In this case we used `.` which is a shorthand for the current directory which happens to be `suggestotron`. We'll go into detail on what it created shortly. This and the following steps will all print a lot of stuff to the screen and might take a while to finish."
102
105
console "docker-compose build"
103
106
message "Setup the database:"
104
107
message "In your editor, open up `config/database.yml` and change it to the following:"
@@ -124,10 +127,6 @@ steps do
124
127
console "docker-compose run web bin/rails db:create"
125
128
console "docker-compose run web bin/rails db:migrate"
126
129
end
127
-
128
-
message "`rails new` creates a new Rails project with the name you give."
129
-
message "In this case we told it to create a new project called `suggestotron`. We'll go into detail on what it created shortly."
130
-
message "This will print a lot of stuff to the screen and can take a while to finish."
0 commit comments