Fixing indentation for generate method and ruby'ish way to create order in controller

Harmless changes to check if the project is active. I am interested in contributing.

*PING*