My Gemfile use gem 'geokit-rails', :git => 'https://github.com/geokit/geokit-rails' because if I use only gem 'geokit-rails' I have an error Could not find generator 'geokit_rails:install' when trying to generate config.
test "Je dois pouvoir trouver un trajet près de coordonnées gps via ses étapes" do
route = routes(:default)
route.within(10, :origin => [1.23456,-5.3269])
end
And I get this error NoMethodError: undefined method 'within' for #<Route:0xa1e9d88> how is it possible ?
I'm trying to add geokit-rails to my project. I want to be abble to find the
route
that contains the closeststep
to a location.My models are so :
My
Step
's schema :My Gemfile use
gem 'geokit-rails', :git => 'https://github.com/geokit/geokit-rails'
because if I use onlygem 'geokit-rails'
I have an errorCould not find generator 'geokit_rails:install'
when trying to generate config.My
geokit_config.rb
:Now my test try the following
And I get this error
NoMethodError: undefined method 'within' for #<Route:0xa1e9d88>
how is it possible ?