code-for-india/spotter — pull request #2 by dhananjay92 (2014-04-08 18:19:39+00:00)
Title: Some Improvements

1. When I tried accessing `/issues/new` page, it gave me error that `Showing /spotter/app/views/issues/_form.html.haml where line #1 raised: First argument in form cannot contain nil or be empty`. To Resolve that I overwrote `new` method.

2. The images are currently saved with their original names which is not a good practice. Also it has some security issues. (See [here](http://trevorturk.com/2009/03/22/randomize-filename-in-paperclip/) ). So added the functionality of randomizing the image file names before saving. Now images are saved with long random names.