How does one escape a semicolon in their database.yml file? One of our passwords have an embedded ";" character. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
me wrote:> How does one escape a semicolon in their database.yml file? > One of our passwords have an embedded ";" character.semi-colons are not reserved words in yaml and therefore don''t need escaping http://www.yaml.org/refcard.html>> "text with embedded semi-colons such as ; and ; and even more ;".to_yaml=> "--- text with embedded semi-colons such as ; and ; and even more ;\n">>hth ilan -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 22, 12:41 pm, me <brooh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> How does one escape a semicolon in their database.yml file? > One of our passwords have an embedded ";" character.I''ve had trouble with certain characters in db passwords before too, even characters that weren''t reserved or "special" for yaml. Wrapping it in quotes seems to do the trick. -- Justin Blake http://mega.blaix.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---