Forum: Rails deployment Error while starting webrick server

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9492d221aaa0ba9ff102cbb3378da0f7?d=identicon&s=25 Sachin Joshi (sachinjoshi)
on 2008-10-24 17:39
I am getting the following error while booting webrick,
I am a newbie not getting what needs to be done.

Can any Expert help on this?

Sachin

F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:328:in
`send': undefined method `session=' for ActionController::Base:Class
(NoMethodError)
        from
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:328:in
`initialize_framework_settings'
        from
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:327:in
`each'
        from
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:327:in
`initialize_framework_settings'
        from
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:324:in
`each'
        from
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:324:in
`initialize_framework_settings'
        from
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:96:in
`process'
        from
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:43:in
`send'
        from
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:43:in
`run'
         ... 12 levels...
        from
F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/server.rb:39
        from
F:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from
F:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from script/server:3
B14575f0ca69f10938fdd67e7156e0e1?d=identicon&s=25 Craig Demyanovich (Guest)
on 2008-10-24 20:08
(Received via mailing list)
What command are you using to start Webrick? I assume that you're
running
script/server from within the top-level directory of your Rails app, but
I
thought I'd ask to be sure.

Regards,
Craig
9492d221aaa0ba9ff102cbb3378da0f7?d=identicon&s=25 Sachin Joshi (sachinjoshi)
on 2008-10-24 20:33
Craig Demyanovich wrote:
> What command are you using to start Webrick? I assume that you're
> running
> script/server from within the top-level directory of your Rails app, but
> I
> thought I'd ask to be sure.
>
> Regards,
> Craig

Yes I am using the following command
ruby script/server
is it some sort of setup issue, because i developed a project in an
environment
then in the mean the development environment got upgraded, when i tried
running the older project it shown some errors. now i have again
downgraded the environment.

Help Appreciated.
Thanks in advance
Sachin
B14575f0ca69f10938fdd67e7156e0e1?d=identicon&s=25 Craig Demyanovich (Guest)
on 2008-10-24 20:44
(Received via mailing list)
If your projects depend on the gems installed, I can see how changes in
the
environment would cause problems. For the project in question, what is
RAILS_GEM_VERSION set to in your config/environment.rb file? What rails
gem
versions are installed on your machine?

Regards,
Craig
1e0fce0b6a4bc9b682b67b4d7b43b17b?d=identicon&s=25 Rafael García (rafa)
on 2008-10-25 01:48
(Received via mailing list)
How you use store sessions (in AR or in cookie)? If you're using
database check that tables was created for this environment.

I think that your problem come from it.

Sachin Joshi escribió:
>         from
> `each'
> F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:43:in
>         from script/server:3
>


--
Rafael Garcia Ortega
9492d221aaa0ba9ff102cbb3378da0f7?d=identicon&s=25 Sachin Joshi (sachinjoshi)
on 2008-10-25 09:27
Rafael García wrote:
> How you use store sessions (in AR or in cookie)? If you're using
> database check that tables was created for this environment.
>
> I think that your problem come from it.
>
> Sachin Joshi escribió:
>>         from
>> `each'
>> F:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:43:in
>>         from script/server:3
>>
>
>
> --
> Rafael Garcia Ortega

Hello everybody thanks for guidelines you provided, I re-created a fresh
rails project and copied the app folder in to it..

and now it seems to be resolved, it is giving few errors when the gems
related function are called. and after installing gem it is running ok.

Cheers
Sachin
This topic is locked and can not be replied to.