How to convert a string to lower or upper case in Ruby

Ruby has a few methods for changing the case of strings. To convert to lowercase, use downcase: “hello James!”.downcase #=> “hello james!” Similarly, upcase capitalizes every letter and capitalize capitalizes the first letter of the string but lowercases the rest: “hello James!”.upcase #=> “HELLO JAMES!” “hello James!”.capitalize #=> “Hello james!” “hello James!”.titleize #=> “Hello James!” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)