Example of a strange rails behaviour