Updated to Rails 4.0.0

Some slight changes were made for the app to work with Rails 4.0.0.