Adjust format to rails_pattern