Skip to content

Commit

Permalink
CL guide: convert rails server to shell text
Browse files Browse the repository at this point in the history
  • Loading branch information
eparreno committed Apr 8, 2010
1 parent f23fff6 commit e399508
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions railties/guides/source/command_line.textile
Expand Up @@ -246,9 +246,13 @@ $ rake db:migrate


INFO: Let's talk about unit tests. Unit tests are code that tests and makes assertions about code. In unit testing, we take a little part of code, say a method of a model, and test its inputs and outputs. Unit tests are your friend. The sooner you make peace with the fact that your quality of life will drastically increase when you unit test your code, the better. Seriously. We'll make one in a moment. INFO: Let's talk about unit tests. Unit tests are code that tests and makes assertions about code. In unit testing, we take a little part of code, say a method of a model, and test its inputs and outputs. Unit tests are your friend. The sooner you make peace with the fact that your quality of life will drastically increase when you unit test your code, the better. Seriously. We'll make one in a moment.


Let's see the interface Rails created for us. rails server; http://localhost:3000/high_scores Let's see the interface Rails created for us.


We can create new high scores (55,160 on Space Invaders!) <shell>
$ rails server
</shell>

Go to your browser and open "http://localhost:3000/high_scores":http://localhost:3000/high_scores, now we can create new high scores (55,160 on Space Invaders!)


h4. +rails console+ h4. +rails console+


Expand Down

0 comments on commit e399508

Please sign in to comment.