Hola!
Intento utilizar la base de datos para almacenar las sesiones de
usuario. He editado el fichero config/environment.rb y cambiar el valor
de la variable config.action_controller.session_store a
:active_record_store. Posteriormente ejecute rake db:sessions:create.
El caso es que al arrancar el servidor me sale esto:
C:/instantrails/InstantRails-1.7-win/InstantRails/rails_apps/project/config/envi
ronment.rb:31: undefined method action_controller' for Config:Module (NoMethodE rror) from C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/gem s/1.8/gems/rails-1.2.3/lib/initializer.rb:41:inrun’
from
C:/instantrails/InstantRails-1.7-win/InstantRails/rails_apps/projec
t/config/environment.rb:13
from
C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/sit
e_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' from C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/sit e_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/gem
s/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in requir e' from C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/gem s/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:innew_co
nstants_in’
from
C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/gem
s/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in requir e' from C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/gem s/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:155:inrails’
… 20 levels…
from
C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/gem
s/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
from
C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/sit
e_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' from C:/instantrails/InstantRails-1.7-win/InstantRails/ruby/lib/ruby/sit e_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from script/server:3
alguna orientacion? algo que deba mirar? en cualquier caso, gracias
Config.action_controller.session_store = :active_record_store
^
a ver si con suerte ese es todo el problema
Saludos,
Raul M.
Rectifico!
Tenias razon era esa tonteria. lo que paso es que antes me equivoque y
lo cambie en el config de otro proyecto :S soy un despistao sin
remedio. Todo solucionado muchas gracias!!!