1
1
#Learn-Rails-by-Reading-Source-Code
2
2
3
- ##Part 0: Beforeyou research Rails 5 source code
3
+ ##Part 0: Beforereading Rails 5 source code
4
4
1 ) I suggest you learn Rack[ http://rack.github.io/ ] ( http://rack.github.io/ ) first.
5
5
6
- You need to know that an objectrespond to ` call ` method isthe most important convention .
6
+ In rack, an objectwith ` call ` method isa rack app .
7
7
8
- So which is the object with` call ` method in Rails App? I will answer this question in Part 1.
9
-
10
- 2 ) You need a good IDE with debugging function. I use[ RubyMine] ( https://www.jetbrains.com/ ) .
8
+ So what is the object with` call ` method in Rails? I will answer this question in Part 1.
11
9
10
+ 2 ) You need a good IDE which can help for debugging. I use[ RubyMine] ( https://www.jetbrains.com/ ) .
12
11
13
12
###What you will learn from this tutorial?
14
13
* How does Rails start your application?
@@ -24,7 +23,7 @@ So which is the object with `call` method in Rails App? I will answer this quest
24
23
I should start with the command` $ rails server ` , but I put this to Part 4. Because it's a little bit complex.
25
24
26
25
##Part 1: Your app: an instance of YourProject::Application
27
- Assume your Rails app class name is` YourProject::Application ` (defined in` ./config/application.rb ` ).
26
+ Assume your Rails app's class name is` YourProject::Application ` (defined in` ./config/application.rb ` ).
28
27
29
28
First, I will give you a piece of important code.
30
29
``` ruby