padrino/padrino-framework — Issue #698: sqlite .db file path may be incompatible between Windows and *nix when using Sequel
Author: yasuyuki
Created: 2011-10-11 07:15:35+00:00
State: open

padorino generator creates database.rb like
Sequel.connect("sqlite://" + Padrino.root('db', "project_name_development.db"), :loggers => [logger])

on Windows, Padrino.root returns like "c/path/to/project_name", so Sequel connection url doesn't have enough slashes and doesn't work.
rewrite as
Sequel.connect("sqlite:///" + Padrino.root('db', "project_name_development.db"), :loggers => [logger])
then it works. but it may not work on *nix. (not tested yet.)