Hola!
Soy Sebas y llego aquà por recomendación de Jose Galisteo, de Flowers.
Estoy comenzando con esto de RoR y me he encontrado con un problema
insalvable por el momento, os cuento:
Estoy trabajando con Ubuntu 8.10, ruby 1.8.7, mysql 14.12 y rails 2.2.2.
Después de tenerlo todo instalado y hacer algunas pruebas sencillas de
“H.W.!” me dispongo a configurar database.yml y aquà empiezan los
problemas. Os adjunto la info de configuración de prueba que estoy
usando:
development:
adapter: mysql
database: dubabu_dev
username: root
password: 1234
host: localhost
Warning: The database defined as “test” will be erased and
re-generated from your development database when you run “rake”.
Do not set this db to the same as development or production.
test:
adapter: mysql
database: dubabu_test
username: root
password: 1234
host: localhost
production:
adapter: mysql
database: dubabu_pro
username: root
password: 1234
host: localhost
Pues bien, después de guardar el archivo, e intentar arrancar el
servidor con Mongrel y WEBrick me da un sintax error:
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:701:in
`database_configuration’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:331:in
`initialize_database’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:120:in
`process’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:93:in
`send’
from
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:93:in
run' from /home/sebasstyle/Webs/Factoria2.0/config/environment.rb:13 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require’
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
`require’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in
`new_constants_in’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
`require’
from
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/…/lib/mongrel/rails.rb:147:in
rails' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in
cloaker_’
from
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:149:in
`call’
from
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:149:in
listener' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in
cloaker_’
from
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in
`call’
from
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in
initialize' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in
new’
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in
`run’
from
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in
`run’
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:502:in
`load’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:502:in
`load’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in
`new_constants_in’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:502:in
`load’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/railties/lib/commands/servers/mongrel.rb:64
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
`require’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:354:in
`new_constants_in’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:509:in
`require’
from
/home/sebasstyle/Webs/Factoria2.0/vendor/rails/railties/lib/commands/server.rb:39
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
from script/server:3
Si alguien tiene una idea de por donde puede venir el problema le invito
a una tapita de jamón.
Un saludo!