Changed in view logic to in controller
Delete ruby block
Merge pull request #6 from alice345/5-move-logic-to-view

Changed in view logic to in controller