And you have your RAILS_ENV environment variable set to "production"?

_______________________
Jun-Dai Bates-Kobashigawa
purico.jp

On 5/17/07, Meu Nome <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Im getting an error when trying to scaffold, rails tries to connect to
> the wrong database, I am running RoR on windows.
> When I try to acces localhost:3000/contexts I get this
>     Mysql::Error in ContextsController#index
>     #42000Unknown database 'gtd_development'
>
>
> This is my controller
>
> class ContextsController < ApplicationController
>   scaffold :context
> end
>
>
> And this is my config/database.yml
>
> development:
>   adapter: mysql
>   database: gtd
>   username: root
>   password:
>   host: localhost
>
> test:
>   adapter: mysql
>   database: gtd_teste
>   username: root
>   password:
>   host: localhost
>
> production:
>   development
>
>
> How do I fix this?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to