Re:Rails ActiveRecord gotcha for newbies
by crayz on Thursday March 06, 2008 @09:56AM
(#130565)
No that's completely wrong. ActiveRecord will initialize getter/setter methods for all fields in your db table, and when you use those methods ruby knows they aren't local variables. So all three of the code snippets will produce the same output (although they're not equivalent)
[ Parent
| on HN ]
There are no comments on this comment yet.