[wip] Rails 4

Useless assignment to variable - `types`.<br>Space missing after comma.<br>Space missing to the left of {.<br>Space between { and | missing.<br>Space missing inside }.