Wednesday, January 22, 2014

Learning Wednesday

1.  Rails 4 New Things:
a.  No attr_accessible: Need to understand why you don’t need them, because there has to be some attributes that are simply read-only with just getters and no setters.
2.  Recursive callbacks: Don’t be dumb!
a.  If you call an after_save that updates attributes it will call itself over and over until it is a stack error
b.  You can use a not nil check for this type of iteration and then after they are all done saving it will stop.
3.  Geo Cities Websites: The worst websites in the world
a.  Developers love them, it’s like sex to these people haha.

No comments:

Post a Comment