Cool Ruby & Rails Things
method_missing Credits: Bodaniel Jeanes
methodmissing is called whenever a method cannot be found on an object. You can re-define this method and get it to perform alternative things. In this example, there is no method called succ on an Array object, so it goes to the methodmissing which then calls the method we tried to call on the Array object, on every element in that array, then returns the result. This is a shorter syntax than [1,2,3,4,5,6].map(&:succ).
remove fieldWithErrors div around fields in Rails Credits: Dan Cheail
