Ruby String to Date Conversion

What is wrong with Date.parse method? It seems to work. The only problem here is time zone. If you want date in UTC time zone, then it is better to use Time object, suppose we have string: I couldn’t find simpler method to convert Time to Date.

RubyMine Unit tests – Test Framework quit unexpectedly

There is a nice tutorial for setting up RubyMine tests in their online help, which helped me resolve the same problem as you describe (for Test::Unit-style tests). Basically you need to include the minitest and minitest-reporters gems into your project and add a call to use the new format of tests reporting: Take a look at the tutorial for more options.

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