Silly me, I thought my patch for the same thing was already applied. I guess I forgot to revert the file after creating the patch. My patch might be broken, not sure.
I attached the same patch to that ticket, because mine had encoding support. Hopefully a committer can merge the two and get a working fix for postgres users. On 9/22/07, James Thompson <[EMAIL PROTECTED]> wrote: > There's a ticket open (http://merb.devjavu.com/ticket/192) > with a patch to enable Postgres support in the Sequel plugin. Assuming the > patch works, which I can't vouch for myself, that would solve you problem. > > > > -James > > On 9/22/07, Kevin Williams < [EMAIL PROTECTED]> wrote: > > Aha! > > > > Using the postgresql adapter seems to break it. > > > > I changed my database.yml to sqlite and everything started working. > > Yay! No, wait a minute, that sucks. :) I've looked at the merb_sequel > > code and I'm not sure why it's not working for postgresql. I guess > > I'll switch back to sqlite for now, until some sequel guru can figure > > out what's wrong. > > > > On 9/22/07, Kevin Williams <[EMAIL PROTECTED]> wrote: > > > After installing merb_sequel as a gem, rather than "gem install > > > <path_to>/merb_sequel- 0.0.3.gem -i ./deps" your steps worked for me as > > > well. I'm baffled what could be different about my project that is out > > > of sync. > > > > > > 1). My Rakefile has a custom Spec::Rake::SpecTask defined, otherwise > > > it is identical. > > > 2). My config/database.yml is different > > > 3). My config/dependencies.rb has some extra gems required, but > > > that's all commented out right now. > > > 4). My config/merb.yml has a different :secret_session_key: value. > > > 5). I changed script/new_migration to generate Sequel migrations > > > instead of ActiveRecord migrations. > > > 6). I've added 1 Capfile, 1 controller, 1 haml view, some specs, and > > > a migration file. > > > > > > I fail to see what I've done to make this break. Perhaps I'll > > > re-install all the gems again. Very frustrating. > > > > > > On 9/22/07, James Thompson < [EMAIL PROTECTED]> wrote: > > > > Just for documentation here's my process: > > > > > > > > 1.) svn updated and installed trunk versions of merb & merb_sequel > > > > 2.) merb -g test && cd test && mate . > > > > 3.) rake -T (worked fine) > > > > 4.) Added merb_sequel dependency in config/dependencies.rb > > > > 5.) rake -T runs without error and tells me I need the database.yml > > > > 6.) Modify config/database.yml to the following > > > > > > > > --- > > > > # This is a sample database file for the Sequel ORM > > > > :development: &defaults > > > > :adapter: sqlite > > > > :database: sample.db > > > > > > > > :test: > > > > <<: *defaults > > > > > > > > :production: > > > > <<: *defaults > > > > > > > > 7.) rake -T yields no errors > > > > 8.) merb yields no errors, creates the database > > > > 9.) rake -T yields no errors > > > > 10.) rake sequel:db:migrate complains about no target version which is > > > > expected since I have no migrations for it. > > > > 11.) rake sequel:sessions:clear runs without complaint > > > > > > > > > > > > I'm not getting any errors on revision 677. > > > > > > > > > > > > -James > > > > > > > > > > > > > > > > On 9/22/07, Kevin Williams < [EMAIL PROTECTED]> wrote: > > > > > > > > > > I'm trying to run on trunk. When I run "rake -T" I get an error: > > > > > > > > > > undefined local variable or method `full_config' for > > > > Merb::Orms::Sequel:Module > > > > > > > > > > I'm not 100% sure that I haven't messed something up, so I hesitate > to > > > > > cry "bug" without checking with everyone. Is anyone else seeing > this? > > > > > > > > > > P.S. I'm running merb trunk installed as a gem, the latest sequel > gem, > > > > > and the merb_sequel gem installed in ./gems. My dependencies.rb file > > > > > has the 'dependency "merb_sequel"' line enabled. > > > > > > > > > > -- > > > > > Cheers, > > > > > > > > > > Kevin Williams > > > > > http://kevwil.com/ > > > > > http://www.almostserio.us/ > > > > > http://kevwil.jaiku.com/ > > > > > _______________________________________________ > > > > > Merb-devel mailing list > > > > > [email protected] > > > > > http://rubyforge.org/mailman/listinfo/merb-devel > > > > > > > > > > > > > > > > > > > > > > -- > > > Cheers, > > > > > > Kevin Williams > > > http://kevwil.com/ > > > http://www.almostserio.us/ > > > http://kevwil.jaiku.com/ > > > > > > > > > -- > > Cheers, > > > > Kevin Williams > > http://kevwil.com/ > > http://www.almostserio.us/ > > http://kevwil.jaiku.com/ > > _______________________________________________ > > Merb-devel mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/merb-devel > > > > -- Cheers, Kevin Williams http://kevwil.com/ http://www.almostserio.us/ http://kevwil.jaiku.com/ _______________________________________________ Merb-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/merb-devel
