From mjlefevre at gmail.com Tue May 6 14:17:54 2008 From: mjlefevre at gmail.com (Matthew Lefevre) Date: Tue, 6 May 2008 14:17:54 -0400 Subject: [typo] language bugs in Typo Message-ID: Are these language feature bugs? 1) One of the admin screens has column named "etat" (state) when set to English (en-US) 2) If I change the language from en-US in the admin screens I never can get it back to en-US. Thanks, Matt From frederic at de-villamil.com Tue May 6 15:22:28 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?Fr=E9d=E9ric_de_Villamil?=) Date: Tue, 6 May 2008 21:22:28 +0200 Subject: [typo] language bugs in Typo In-Reply-To: References: Message-ID: <928017EE-6478-4D5F-9D6E-F3A2DB8287D2@de-villamil.com> Le 6 mai 08 ? 20:17, Matthew Lefevre a ?crit : > Are these language feature bugs? > > 1) One of the admin screens has column named "etat" (state) when set > to English (en-US) > > 2) If I change the language from en-US in the admin screens I never > can get it back to en-US. > > Thanks, > Matt Hello, These are bugs I'll fix in the next release. Thank you for reporting. Best regards. Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From randomutterings at gmail.com Mon May 12 12:23:29 2008 From: randomutterings at gmail.com (Chris Barnes) Date: Mon, 12 May 2008 12:23:29 -0400 Subject: [typo] Problem with article feed In-Reply-To: <52c57d810805120905r4be067acod4d390ab83fa1f18@mail.gmail.com> References: <52c57d810805120905r4be067acod4d390ab83fa1f18@mail.gmail.com> Message-ID: <52c57d810805120923j242ada0emdd371533a969a5b1@mail.gmail.com> > > I've seen this posted at least twice before. The comments and trackbacks > feeds work but the article feed logs the following error. > ActionController::MissingTemplate (Missing layout > ../../themes/standard_issue/layouts/default in view path > /var/www/html/fatherhoodguide/themes/standard_issue/views:/var/www/html/fatherhoodguide/app/views): > > Looks like a default layout is missing but I check the path and its there. > Permissions are set correctly also and everything is fresh, new database, > no modifications whatsoever. Any help? > > -- > Chris Barnes > http://www.randomutterings.com > -- Chris Barnes http://www.randomutterings.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomcruizster at gmail.com Sat May 17 11:30:34 2008 From: tomcruizster at gmail.com (Huang Jay) Date: Sat, 17 May 2008 23:30:34 +0800 Subject: [typo] install typo in LAN Message-ID: Hi, I'm a newbie here, My question is what if i run typo on my own machine while I don't have a static IP. I just wanna share my typo blog in local area network. I followed the instruction at http://typosphere.org/2007/08/26/install-typo. and chose the "Apache + mod_rails" way. After intalled all i need and everything went in the right way, I tried to create a new Apache virtual host in apache2 configuration file. I set my ip address to 127.0.1.1, DocumentRoot to my typo public folder. But I don't know how to configure "ServerAdmin" and "ServerName". Can someone help me? Jay From benr at x-cr.com Mon May 19 18:09:40 2008 From: benr at x-cr.com (Ben Reubenstein) Date: Mon, 19 May 2008 16:09:40 -0600 Subject: [typo] install typo in LAN In-Reply-To: References: Message-ID: <44c79a160805191509h7c72fe3ey9dd7cb3ecc68b5c2@mail.gmail.com> Jay ~ 127.0.1.1 is not visible to your LAN. Here are full instructions for mod_rails + virtual hosts. Hope this helps: http://benr75.com/articles/2008/04/12/setup-mod_rails-phusion-mac-os-x-leopard On Sat, May 17, 2008 at 9:30 AM, Huang Jay wrote: > Hi, I'm a newbie here, > My question is what if i run typo on my own machine while I don't have > a static IP. I just wanna share my typo blog in local area network. > I followed the instruction at > http://typosphere.org/2007/08/26/install-typo. and chose the "Apache + > mod_rails" way. > After intalled all i need and everything went in the right way, I > tried to create a new Apache virtual host in apache2 configuration > file. I set my ip address to 127.0.1.1, DocumentRoot to my typo > public folder. But I don't know how to configure "ServerAdmin" and > "ServerName". > > Can someone help me? > > Jay > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Ben Reubenstein 303-947-0446 Xcellent Creations, Inc. http://www.x-cr.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomcruizster at gmail.com Wed May 21 03:04:54 2008 From: tomcruizster at gmail.com (Huang Jay) Date: Wed, 21 May 2008 15:04:54 +0800 Subject: [typo] typo installation on bluehost Message-ID: Hi, I try to install typo 5.0.3 on a subdomain of "eeacsite.com". I followed the instructions step by step from http://bartgdev.com/articles/2006/08/07/installing-typo-on-bluehost. 1. I create a subdomain typo, wget typo-5.0.3, tar the file, and create a symbol link: ln -s ~/rails/typo-5.0.3/public ~/public_html/typo. 2. Create the necessary databases by phpMyAdmin. 3. Setting Typo to Production Add the following lines to these files: typo/config/environment.rb ENV['RAILS_ENV'] = 'production' typo/public/.htaccess SetEnv RAILS_ENV production Set dispatcher path in "typo/public/dispatch.rb" Old Line: #require "dispatcher" New Line: "/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher" 4. set the FastCGI, here is my typo5.0.3/public/.htaccess Content: # General Apache options AddHandler fastcgi-script .fcgi AddHandler fcgid-script .fcgi AddHandler cgi-script .cgi #Options +FollowSymLinks +ExecCGI SetEnv RAILS_ENV production # If you don't want Rails to look in certain directories, # use the following rewrite rules so that Apache won't rewrite certain requests # # Example: # RewriteCond %{REQUEST_URI} ^/notrails.* # RewriteRule .* - [L] # Redirect all requests not available on the filesystem to Rails RewriteEngine On # If Typo is accessed via an Alias directive, then you MUST also set # the RewriteBase in this htaccess file. # # Example: # Alias /blog /path/to/typo/public # RewriteBase /blog RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)/!$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] # <=change to dispatch.cgi # In case Typo experiences terminal errors # Instead of displaying this message you can supply a file here which will be r$ # # Example: # ErrorDocument 500 /500.html ErrorDocument 500 "

Application error

Typo failed to start properly" 5.chmod I give everything in the typo-5.0.3/public/*.* folder CHMOD 755 access. Finally I try to open "typo.eeacsite.com" in the browser. It gives: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster at typo.eeacsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at typo.eeacsite.com Port 80 I cannot find other resources to figure out this problem. Could someone help me with this? From joe at modestbox.com Sun May 25 13:03:18 2008 From: joe at modestbox.com (Joe Tyson) Date: Sun, 25 May 2008 13:03:18 -0400 Subject: [typo] lighttpd deployment problems Message-ID: Hello, I'm trying to deploy typo with fastcgi + lighttpd but I'm running into a nifty little 500 internal error. I checked the development log and this is what I get: Rendering /home/modestbox/blog/vendor/rails/actionpack/lib/ action_controller/templates/rescues/layout.erb (internal_server_error) /!\ FAILSAFE /!\ Sun May 25 09:56:33 -0700 2008 Status: 500 Internal Server Error SQLite3::SQLException: SQL logic error or missing database: INSERT INTO sessions ("updated_at", "sessid", "created_at", "data") VALUES('2008-05-25 09:56:33', '19e639f9aaa611cbe63fbbc29ba66aa7', '2008-05-25 09:56:33', 'BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo SGFzaHsABjoKQHVzZWR7AA== ') If I use the webrick server or mongrel I have no problems. I've poked around and can't seem to figure out exactly why it's only giving me crap on this. Thanks, Joe From frederic at de-villamil.com Sun May 25 13:51:49 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?Fr=E9d=E9ric_de_Villamil?=) Date: Sun, 25 May 2008 19:51:49 +0200 Subject: [typo] lighttpd deployment problems In-Reply-To: References: Message-ID: <79551088-B1C5-4966-AE89-C697B1ED662D@de-villamil.com> Le 25 mai 08 ? 19:03, Joe Tyson a ?crit : > Hello, > > I'm trying to deploy typo with fastcgi + lighttpd but I'm running > into a nifty little 500 internal error. I checked the development > log and this is what I get: > > Rendering /home/modestbox/blog/vendor/rails/actionpack/lib/ > action_controller/templates/rescues/layout.erb (internal_server_error) > /!\ FAILSAFE /!\ Sun May 25 09:56:33 -0700 2008 > Status: 500 Internal Server Error > SQLite3::SQLException: SQL logic error or missing database: INSERT > INTO sessions ("updated_at", "sessid", "created_at", "data") > VALUES('2008-05-25 09:56:33', '19e639f9aaa611cbe63fbbc29ba66aa7', > '2008-05-25 09:56:33', > 'BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo > SGFzaHsABjoKQHVzZWR7AA== > ') > > > If I use the webrick server or mongrel I have no problems. I've > poked around and can't seem to figure out exactly why it's only > giving me crap on this. > > Thanks, > Joe Hi, it seems you're lacking the database. I think it's a production VS development issue since webrick and mongrel starts in development environment by default. Can you check that 1/ your environment is the good one when starting lighty ? 2/ the database exists for that environment Regards, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From joe at modestbox.com Sun May 25 18:36:38 2008 From: joe at modestbox.com (Joe Tyson) Date: Sun, 25 May 2008 18:36:38 -0400 Subject: [typo] lighttpd deployment problems In-Reply-To: <79551088-B1C5-4966-AE89-C697B1ED662D@de-villamil.com> References: <79551088-B1C5-4966-AE89-C697B1ED662D@de-villamil.com> Message-ID: lighty is starting in development, and I checked and the database exists.. On May 25, 2008, at 1:51 PM, Fr?d?ric de Villamil wrote: > > Le 25 mai 08 ? 19:03, Joe Tyson a ?crit : > >> Hello, >> >> I'm trying to deploy typo with fastcgi + lighttpd but I'm running >> into a nifty little 500 internal error. I checked the development >> log and this is what I get: >> >> Rendering /home/modestbox/blog/vendor/rails/actionpack/lib/ >> action_controller/templates/rescues/layout.erb >> (internal_server_error) >> /!\ FAILSAFE /!\ Sun May 25 09:56:33 -0700 2008 >> Status: 500 Internal Server Error >> SQLite3::SQLException: SQL logic error or missing database: INSERT >> INTO sessions ("updated_at", "sessid", "created_at", "data") >> VALUES('2008-05-25 09:56:33', '19e639f9aaa611cbe63fbbc29ba66aa7', >> '2008-05-25 09:56:33', >> 'BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo >> SGFzaHsABjoKQHVzZWR7AA== >> ') >> >> >> If I use the webrick server or mongrel I have no problems. I've >> poked around and can't seem to figure out exactly why it's only >> giving me crap on this. >> >> Thanks, >> Joe > > Hi, > > it seems you're lacking the database. I think it's a production VS > development issue since webrick and mongrel starts in development > environment by default. Can you check that > 1/ your environment is the good one when starting lighty ? > 2/ the database exists for that environment > > Regards, > Fr?d?ric > > > -- > Fr?d?ric de Villamil > frederic at de-villamil.com tel: +33 (0)6 62 19 > 1337 > http://fredericdevillamil.com Typo : http://typosphere.org > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From arun.gupta at gmail.com Wed May 28 19:52:54 2008 From: arun.gupta at gmail.com (Arun Gupta) Date: Wed, 28 May 2008 16:52:54 -0700 Subject: [typo] db:create gives "Unknown database" Message-ID: I'm trying to install Typo 5.0.3 and "rake db:create" gives the following error: -- cut here -- (in /Users/arungupta/samples/jruby/typo-5.0.3) rake aborted! #42000Unknown database 'typo_dev' (See full trace by running task with --trace) -- cut here -- I'm able to create other trivial Rails applications and db:create database there. -Arun -- Web Technologies and Standards Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta From cyril.mougel at gmail.com Thu May 29 02:30:54 2008 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Thu, 29 May 2008 08:30:54 +0200 Subject: [typo] db:create gives "Unknown database" In-Reply-To: References: Message-ID: On Thu, May 29, 2008 at 1:52 AM, Arun Gupta wrote: > I'm trying to install Typo 5.0.3 and "rake db:create" gives the following error: > > -- cut here -- > (in /Users/arungupta/samples/jruby/typo-5.0.3) > rake aborted! > #42000Unknown database 'typo_dev' > > (See full trace by running task with --trace) > -- cut here -- > > I'm able to create other trivial Rails applications and db:create > database there. > it's because the default environnement is development. Try : rake db:create RAILS_ENV='production' So the creation are in typo production database. You know how is this base in config.database.yml -- Cyril Mougel http://blog.shingara.fr From arun.gupta at gmail.com Thu May 29 10:24:33 2008 From: arun.gupta at gmail.com (Arun Gupta) Date: Thu, 29 May 2008 07:24:33 -0700 Subject: [typo] db:create gives "Unknown database" In-Reply-To: References: Message-ID: Is it mandatory to use production database ? The command below should generate the development database, isn't it ? -Arun On Wed, May 28, 2008 at 11:30 PM, Cyril Mougel wrote: > On Thu, May 29, 2008 at 1:52 AM, Arun Gupta wrote: >> I'm trying to install Typo 5.0.3 and "rake db:create" gives the following error: >> >> -- cut here -- >> (in /Users/arungupta/samples/jruby/typo-5.0.3) >> rake aborted! >> #42000Unknown database 'typo_dev' >> >> (See full trace by running task with --trace) >> -- cut here -- >> >> I'm able to create other trivial Rails applications and db:create >> database there. >> > > > it's because the default environnement is development. > > Try : > > rake db:create RAILS_ENV='production' > > So the creation are in typo production database. You know how is this > base in config.database.yml > > > -- > Cyril Mougel > http://blog.shingara.fr > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Web Technologies and Standards Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta From cyril.mougel at gmail.com Thu May 29 11:01:08 2008 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Thu, 29 May 2008 17:01:08 +0200 Subject: [typo] db:create gives "Unknown database" In-Reply-To: References: Message-ID: On Thu, May 29, 2008 at 4:24 PM, Arun Gupta wrote: > Is it mandatory to use production database ? No it's for your production mode. Because with the production database, there are too production configuration about cache by example. So it's advise to use production environnement for a blog not use for developpement. > > The command below should generate the development database, isn't it ? This commande create the database. But your user are right for create it ? -- Cyril Mougel http://blog.shingara.fr From arun.gupta at gmail.com Thu May 29 12:09:28 2008 From: arun.gupta at gmail.com (Arun Gupta) Date: Thu, 29 May 2008 09:09:28 -0700 Subject: [typo] db:create gives "Unknown database" In-Reply-To: References: Message-ID: >> Is it mandatory to use production database ? > > No it's for your production mode. Because with the production > database, there are too production configuration about cache by > example. So it's advise to use production environnement for a blog not > use for developpement. Ok, I was trying it on my local so thought of trying the development mode to begin with. Even with production mode, I'm getting: -- cut here -- (in /Users/arungupta/samples/jruby/typo-5.0.3) rake aborted! #42000Unknown database 'typo' (See full trace by running task with --trace) -- cut here -- > >> >> The command below should generate the development database, isn't it ? > > This commande create the database. But your user are right for create it ? I'm using the database.yml bundled with Typo 5.0.3 and MySQL is also default (username: root, password: ). -Arun > > > -- > Cyril Mougel > http://blog.shingara.fr > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Web Technologies and Standards Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta From damm at livid.dk Thu May 29 14:38:30 2008 From: damm at livid.dk (Scott Likens) Date: Thu, 29 May 2008 11:38:30 -0700 Subject: [typo] db:create gives "Unknown database" In-Reply-To: References: Message-ID: <77440664-045F-49E6-9841-4C129F75530E@livid.dk> Okay this is plain silly, what does your config/database.yml show? Which Adapter are you using SQLite3? MySQL? If you are using MySQL please create the database, db:create does not create the database for you. ... and if you are unaware of how to do that, then please read the manual for whatever adapter you are using. On May 29, 2008, at 9:09 AM, Arun Gupta wrote: >>> Is it mandatory to use production database ? >> >> No it's for your production mode. Because with the production >> database, there are too production configuration about cache by >> example. So it's advise to use production environnement for a blog >> not >> use for developpement. > Ok, I was trying it on my local so thought of trying the development > mode to begin with. > > Even with production mode, I'm getting: > > -- cut here -- > (in /Users/arungupta/samples/jruby/typo-5.0.3) > rake aborted! > #42000Unknown database 'typo' > > (See full trace by running task with --trace) > -- cut here -- > >> >>> >>> The command below should generate the development database, isn't >>> it ? >> >> This commande create the database. But your user are right for >> create it ? > I'm using the database.yml bundled with Typo 5.0.3 and MySQL is also > default (username: root, password: ). > > -Arun > >> >> >> -- >> Cyril Mougel >> http://blog.shingara.fr >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > > > > -- > Web Technologies and Standards > Sun Microsystems, Inc. > Blog: http://blogs.sun.com/arungupta > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > !DSPAM:483ed65c62851646824759! > > From arun.gupta at gmail.com Thu May 29 20:49:48 2008 From: arun.gupta at gmail.com (Arun Gupta) Date: Thu, 29 May 2008 17:49:48 -0700 Subject: [typo] db:create gives "Unknown database" In-Reply-To: <77440664-045F-49E6-9841-4C129F75530E@livid.dk> References: <77440664-045F-49E6-9841-4C129F75530E@livid.dk> Message-ID: > Okay this is plain silly, Sorry, but not working for me :( > > what does your config/database.yml show? It is the one bundled with Typoe 5.0.3 and shown here: login: &login adapter: mysql host: localhost username: root password: development: database: typo_dev <<: *login test: database: typo_tests <<: *login production: database: typo <<: *login > > Which Adapter are you using SQLite3? MySQL? MySQL with JRuby > > If you are using MySQL please create the database, db:create does not create > the database for you. Hmmm ... ~/testbed/jruby-1.1.2/bin/jruby -S rails foo -d mysql cd foo ~/testbed/jruby-1.1.2/bin/jruby -S rake db:create http://dev.rubyonrails.org/changeset/6849 also says so. What am I missing ? -Arun -- Web Technologies and Standards Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta From damm at livid.dk Thu May 29 23:16:47 2008 From: damm at livid.dk (Scott Likens) Date: Thu, 29 May 2008 20:16:47 -0700 Subject: [typo] db:create gives "Unknown database" In-Reply-To: References: <77440664-045F-49E6-9841-4C129F75530E@livid.dk> Message-ID: <2B69B3DC-0789-4FA2-8EE9-EF03C7298E57@livid.dk> Arun, First you need to modify the database.yml so it has permission to access typo_dev typo_tests or typo. If you want to run with root that's fine. at a shell prompt type, mysqladmin create typo mysqladmin create typo_dev mysqladmin create typo_tests then you can try rake db:create On May 29, 2008, at 5:49 PM, Arun Gupta wrote: >> Okay this is plain silly, > Sorry, but not working for me :( > >> >> what does your config/database.yml show? > > It is the one bundled with Typoe 5.0.3 and shown here: > > login: &login > adapter: mysql > host: localhost > username: root > password: > > > development: > database: typo_dev > <<: *login > > test: > database: typo_tests > <<: *login > > production: > database: typo > <<: *login > >> >> Which Adapter are you using SQLite3? MySQL? > MySQL with JRuby > >> >> If you are using MySQL please create the database, db:create does >> not create >> the database for you. > Hmmm ... > > ~/testbed/jruby-1.1.2/bin/jruby -S rails foo -d mysql > cd foo > ~/testbed/jruby-1.1.2/bin/jruby -S rake db:create > > http://dev.rubyonrails.org/changeset/6849 also says so. > > What am I missing ? > > -Arun > > > -- > Web Technologies and Standards > Sun Microsystems, Inc. > Blog: http://blogs.sun.com/arungupta > > !DSPAM:483f4f4c110161263019146! > > From arun.gupta at gmail.com Thu May 29 23:41:34 2008 From: arun.gupta at gmail.com (Arun Gupta) Date: Thu, 29 May 2008 20:41:34 -0700 Subject: [typo] db:create gives "Unknown database" In-Reply-To: <2B69B3DC-0789-4FA2-8EE9-EF03C7298E57@livid.dk> References: <77440664-045F-49E6-9841-4C129F75530E@livid.dk> <2B69B3DC-0789-4FA2-8EE9-EF03C7298E57@livid.dk> Message-ID: > First you need to modify the database.yml so it has permission to access > typo_dev typo_tests or typo. > > If you want to run with root that's fine. Yep, that's fine with me since first I want to get the feel of Typo. > > at a shell prompt type, > > mysqladmin create typo > mysqladmin create typo_dev > mysqladmin create typo_tests > > then you can try rake db:create I know mysqladmin command. AIU the main point of db:create is to create the database. Since Rails 2.0, I've never use mysqladmin command to create the database and always used db:create. I'm still confused why I need to explicitly create the database using mysqladmin. -Arun > > On May 29, 2008, at 5:49 PM, Arun Gupta wrote: > >>> Okay this is plain silly, >> >> Sorry, but not working for me :( >> >>> >>> what does your config/database.yml show? >> >> It is the one bundled with Typoe 5.0.3 and shown here: >> >> login: &login >> adapter: mysql >> host: localhost >> username: root >> password: >> >> >> development: >> database: typo_dev >> <<: *login >> >> test: >> database: typo_tests >> <<: *login >> >> production: >> database: typo >> <<: *login >> >>> >>> Which Adapter are you using SQLite3? MySQL? >> >> MySQL with JRuby >> >>> >>> If you are using MySQL please create the database, db:create does not >>> create >>> the database for you. >> >> Hmmm ... >> >> ~/testbed/jruby-1.1.2/bin/jruby -S rails foo -d mysql >> cd foo >> ~/testbed/jruby-1.1.2/bin/jruby -S rake db:create >> >> http://dev.rubyonrails.org/changeset/6849 also says so. >> >> What am I missing ? >> >> -Arun >> >> >> -- >> Web Technologies and Standards >> Sun Microsystems, Inc. >> Blog: http://blogs.sun.com/arungupta >> >> !DSPAM:483f4f4c110161263019146! >> >> > > -- Web Technologies and Standards Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta From cyril.mougel at gmail.com Fri May 30 03:28:05 2008 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Fri, 30 May 2008 09:28:05 +0200 Subject: [typo] db:create gives "Unknown database" In-Reply-To: References: <77440664-045F-49E6-9841-4C129F75530E@livid.dk> Message-ID: On Fri, May 30, 2008 at 2:49 AM, Arun Gupta wrote: >> Okay this is plain silly, > Sorry, but not working for me :( > >> >> what does your config/database.yml show? > > It is the one bundled with Typoe 5.0.3 and shown here: > > login: &login > adapter: mysql > host: localhost > username: root > password: > > > development: > database: typo_dev > <<: *login > > test: > database: typo_tests > <<: *login > > production: > database: typo > <<: *login > >> >> Which Adapter are you using SQLite3? MySQL? > MySQL with JRuby With JRuby, I think that the Mysql adapter doesn't work. You need use : jdbcmysql Test with change the line adapter : mysql by adapter : jdbcmysql and install the gems jdbc-mysql activerecord-jdbcmysql-adapter. -- Cyril Mougel http://blog.shingara.fr From arun.gupta at gmail.com Fri May 30 09:25:01 2008 From: arun.gupta at gmail.com (Arun Gupta) Date: Fri, 30 May 2008 06:25:01 -0700 Subject: [typo] db:create gives "Unknown database" In-Reply-To: References: <77440664-045F-49E6-9841-4C129F75530E@livid.dk> Message-ID: >>> >>> Which Adapter are you using SQLite3? MySQL? >> MySQL with JRuby > > With JRuby, I think that the Mysql adapter doesn't work. You need use > : jdbcmysql > > Test with change the line adapter : mysql by adapter : jdbcmysql > and install the gems jdbc-mysql activerecord-jdbcmysql-adapter. MySQL Ruby adapter has always worked for me on Mac OS X. As I said above, ~/testbed/jruby-1.1.2/bin/jruby -S rails foo -d mysql cd foo ~/testbed/jruby-1.1.2/bin/jruby -S rake db:create creates foo_development database for me. Why do I have to create it explicitly for Typo ? -Arun > > > -- > Cyril Mougel > http://blog.shingara.fr > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Web Technologies and Standards Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta