short circuit evaluation  

Ruby doesn’t look at both expressions unless it has to; if it sees

false && true

it stops reading as soon as it sees && because it knows false && anything must be false.

 
0
Kudos
 
0
Kudos

Now read this

Put comments under a post

How-to from “just a post” to “a post with comments under it” page. We will have: comment creation form in the post show page list of all comments after. We need: nested resources (need routing supports that generated url) model-backed... Continue →