added index controller method
Merge pull request #7 from Nayshins/index-method-review

Index method review