Migrate to rails4

Prefer `map` over `collect`.<br>Space missing to the left of {.