Cleaning up the code and files generated by the Rails scaffold

Customizing the views and controller as per the requirements