June 2025
Intermediate to advanced
488 pages
12h 27m
English
To complete our retrospective, let’s see how much code we’ve written. There’s a Rails command for that too:
| | % bin/rails stats |
| | +----------------------+--------+--------+---------+---------+-----+-------+ |
| | | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | |
| | +----------------------+--------+--------+---------+---------+-----+-------+ |
| | | Controllers | 670 | 462 | 11 | 71 | 6 | 4 | |
| | | Helpers | 16 | 16 | 0 | 0 | 0 | 0 | |
| | | Jobs | 18 | 8 | 2 | 1 | 0 | 6 | |
| | | Models | 191 | 126 | 10 | 8 | 0 | 13 | |
| | | Mailers | 53 | 28 | 4 | 4 | 1 | 5 | |
| | | Mailboxes | 22 | 16 | 2 | 1 | 0 | 14 | |
| | | Channels | 31 | 25 | 3 | 4 | 1 | 4 | |
| | | Views | 1158 | 908 | 0 | 1 | 0 | 906 | |
| | | Stylesheets | 470 | 417 | 0 | 0 | 0 | 0 | |
| | | JavaScript ... |
Read now
Unlock full access