Changed to rails 4.1.0

adding customized flash message
creating a helper flash_class
Adding new and editing exiting routes
add tests for routes