Rolls back to Rails 4.0.4 to fix search issue