Sometimes when you copy the text from guides, newline characters are not copied to the configuration files. Thus, instead of two lines you get only one line and in some cases it causes the problem even for Ruby. Please check that you have the same number of strings in the configuration files like it is shown in the guide.
Also, please check the official implementation of Ruby on Rails with Gantt demo: github.com/DHTMLX/gantt-howto-rails
But try it with a new database, not the one you already have. If you can reproduce it in the demo, compare configuration files in the demo with configuration files in your app.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan