Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8843545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:15:03+00:00 2026-06-14T11:15:03+00:00

i face a problem with geokit-rails plugin in rails 2.3.12. i’ve a simple model

  • 0

i face a problem with geokit-rails plugin in rails 2.3.12. i’ve a simple model called place like this:

      class Place < ActiveRecord::Base <br>
       attr_accessible :lat, :long, :name <br>
       :acts_as_mappable
      end

and in my controller index action:

def index
@places = Place.all 
@places.find_within(105, :origin => Place.last)
respond_to do |format| 
  format.html # index.html.erb 
  format.json { render :json => @places } 
end

end

now problem is thar\t i cant acces any Mappale method like: distance_between,find_within etc.itgives error: undefined method `find_within’

.

my full trace:

    /home/nascenia/awlad/dtf/daytripfinder/app/controllers/attractions_controller.rb:70:in `search'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/base.rb:1333:in `send'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/filters.rb:617:in `call_filters'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activesupport-2.3.12/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activesupport-2.3.12/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/flash.rb:151:in `perform_action_without_newrelic_trace'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/newrelic_rpm-3.1.0/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:255:in `perform_action'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/newrelic_rpm-3.1.0/lib/new_relic/agent/method_tracer.rb:191:in `trace_execution_scoped'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/newrelic_rpm-3.1.0/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:248:in `perform_action'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/base.rb:532:in `send'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/base.rb:532:in `process_without_filters'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/filters.rb:606:in `sass_old_process'
/home/nascenia/awlad/dtf/daytripfinder/vendor/plugins/haml/lib/sass/plugin/rails.rb:20:in `process'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/base.rb:391:in `process'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/base.rb:386:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/routing/route_set.rb:438:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:87:in `dispatch'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:121:in `_call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:29:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:29:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:9:in `cache'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:28:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:29:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:9:in `cache'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:28:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/activerecord-2.3.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/newrelic_rpm-3.1.0/lib/new_relic/rack/browser_monitoring.rb:18:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/newrelic_rpm-3.1.0/lib/new_relic/rack/developer_mode.rb:24:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/string_coercion.rb:25:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/head.rb:9:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/params_parser.rb:15:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/facebooker-1.0.75/lib/rack/facebook.rb:43:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/session/cookie_store.rb:99:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/failsafe.rb:26:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:114:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/reloader.rb:34:in `run'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:108:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rails-2.3.12/lib/rails/rack/static.rb:31:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `each'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rails-2.3.12/lib/rails/rack/log_tailer.rb:17:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in `service'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:162:in `start'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:95:in `start'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:92:in `each'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:92:in `start'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:23:in `start'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/webrick/server.rb:82:in `start'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rack-1.1.0/lib/rack/handler/webrick.rb:14:in `run'
/home/nascenia/.rvm/gems/ruby-1.8.7-p370@daytrip/gems/rails-2.3.12/lib/commands/server.rb:111
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
/home/nascenia/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
/home/nascenia/awlad/dtf/daytripfinder/script/server:3
-e:1:in `load'
-e:1

any idea …?

Thanks in Advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:15:04+00:00Added an answer on June 14, 2026 at 11:15 am

    Could you try Places.find_within(105, :origin => Place.last) instead? It appears that find_within is a class method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying some programs in c face a problem with this program can
I have this weird problem as to how to name objects of a class.
I often face this problem with git: I clone a git repo of some
hello every one i face this problem and iam too weak in DB i
I face this problem. I have a filter that sets the character encoding of
I am new to iphone developement, during development I face problem due to this
I often face this problem.. Lets say ..In blog application, I need to email
i don't face this problem while working on localhost only when I access the
I must be the first to face this problem because I can't find even
I face a problem I would like to simplify : (quite sure, I'm doing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.