Yes, it does. Only the second one is dangerous.
One good reference from the RoR Guides.
+1 @fphilipe and @yuval Check this 5 min video from railscast and this one from rails guide