From a9b78925a7b925bc267461d7ffa81cc2e3389adb Mon Sep 17 00:00:00 2001 From: Mo Alamin Date: Mon, 27 Nov 2017 23:19:31 -0500 Subject: [PATCH 1/4] Add tldr for rails command. --- pages/common/rails.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/rails.md diff --git a/pages/common/rails.md b/pages/common/rails.md new file mode 100644 index 000000000..f37f4baef --- /dev/null +++ b/pages/common/rails.md @@ -0,0 +1,23 @@ +# rails + +> Ruby on Rails, or Rails, is a server-side MVC framework written in Ruby under the MIT License. + +- Check current version of rails: + +`rails --version` + +- Create a new rails project: + +`rails new "{{name_of_project}}"` + +- Start local server for current project on port 3000 (while in projects root directory): + +`rails server` + +- Start local server for current project on a specified port: + +`rails server -p "{{port_number}}"` + +- Open console to interact with applicaiton from command line (while in projects root directory): + +`rails console` \ No newline at end of file From f5cd6460dfd3a77612c5e12292aa36335d4f8a35 Mon Sep 17 00:00:00 2001 From: Mo Alamin Date: Mon, 27 Nov 2017 23:30:14 -0500 Subject: [PATCH 2/4] TLDR009 Page should contain a newline at end of file, fix. --- pages/common/rails.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/rails.md b/pages/common/rails.md index f37f4baef..2d33d31f6 100644 --- a/pages/common/rails.md +++ b/pages/common/rails.md @@ -14,10 +14,10 @@ `rails server` -- Start local server for current project on a specified port: +- Start local server for current project on a specified port (while in projects root directory): `rails server -p "{{port_number}}"` - Open console to interact with applicaiton from command line (while in projects root directory): -`rails console` \ No newline at end of file +`rails console` From 6a75102e02d5248b5095890061c71dd52b992d53 Mon Sep 17 00:00:00 2001 From: Mo Al Amin Date: Tue, 28 Nov 2017 22:54:55 -0500 Subject: [PATCH 3/4] Made changes suggested by agnivade. --- pages/common/rails.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/pages/common/rails.md b/pages/common/rails.md index 2d33d31f6..3e7d39e86 100644 --- a/pages/common/rails.md +++ b/pages/common/rails.md @@ -1,23 +1,23 @@ # rails -> Ruby on Rails, or Rails, is a server-side MVC framework written in Ruby under the MIT License. +> A server-side MVC framework written in Ruby + +- Create a new rails project: + +`rails new "{{project_name}}"` + +- Start local server for current project on port 3000: + +`rails server` + +- Start local server for current project on a specified port: + +`rails server -p "{{port}}"` + +- Open console to interact with application from command line: + +`rails console` - Check current version of rails: `rails --version` - -- Create a new rails project: - -`rails new "{{name_of_project}}"` - -- Start local server for current project on port 3000 (while in projects root directory): - -`rails server` - -- Start local server for current project on a specified port (while in projects root directory): - -`rails server -p "{{port_number}}"` - -- Open console to interact with applicaiton from command line (while in projects root directory): - -`rails console` From 5b21708877e7268e845103da43cfd7514d262fa9 Mon Sep 17 00:00:00 2001 From: Mo Al Amin Date: Tue, 28 Nov 2017 23:01:29 -0500 Subject: [PATCH 4/4] Add period to description. --- pages/common/rails.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/rails.md b/pages/common/rails.md index 3e7d39e86..9b21d90f3 100644 --- a/pages/common/rails.md +++ b/pages/common/rails.md @@ -1,6 +1,6 @@ # rails -> A server-side MVC framework written in Ruby +> A server-side MVC framework written in Ruby. - Create a new rails project: