Failed to attach rails_directory