On 13 February 2012 15:31, aditya dsouza <[email protected]> wrote:
Could you not top post please, it makes it difficult to follow the
thread. Insert your reply at appropriate points in the previous
message, thanks.
> Hi Colin,
>
> Thanks for replying. I checked the line number you said to and it
> contains
> something like this.
>
> CACHE = Earth::Db::Base.cache_manager =
> Earth::Db::MemcacheManager.new('localhost:11211')
>
> I did install the memcache gem. Any ideas how to solve this as I am a
> newbie in Rails.
That looks a rather complex line for a newbie in Rails to be using. I
hope you have worked through some rails tutorials before jumping in at
the deep end. railstutorial.org is good and is free to use online.
If you look again at the error it is complaining about Earth::Db. I
have not idea what that is, hopefully you do. It is probably wherever
that is supposed to come from that is missing.
Colin
>
>
> Colin Law wrote in post #1046490:
>> On 13 February 2012 15:04, aditya dsouza <[email protected]> wrote:
>>> Hi I am working with the following code , but getting an error
>>>
>>>
>>> ruby script/server
>>> => Booting WEBrick
>>> => Rails 2.3.5 application starting on http://0.0.0.0:3000
>>>
>>
> /usr/local/rvm/gems/ruby-1.8.7-p357/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning:
>>> Gem::Dependency#version_requirements is deprecated and will be removed
>>> on or after August 2010. Use #requirement
>>
>> That is just a warning, I would not worry about it for the moment,
>> sort out the errors first.
>>
>>>
>>
> /usr/local/rvm/gems/ruby-1.8.7-p357/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in
>>> `load_missing_constant': uninitialized constant Earth::Db (NameError)
>>> from
>>>
>>
> /usr/local/rvm/gems/ruby-1.8.7-p357/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in
>>> `const_missing'
>>> from /root/mysite/webapp/config/environments/development.rb:66:in
>>
>> It is often not easy to see the important line in a stack trace, look
>> for one that references some of your code. In this case the problem
>> is at line 66 of the file above. Have a look at line 66 and see what
>> it says, possibly it is trying to use a gem that you have not
>> installed.
>>
>> Colin
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
gplus.to/clanlaw
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.