Small improvements

I run rubocop and he shows some formatting issues. I changed in the files helper.

And Rails renders automatically when you define empty method actions on controllers.

My first and a small contribution.
Maybe it comes from JavaScript but in Ruby we never indented hashes that way