similar to: geokit - using :through to connect models

Displaying 20 results from an estimated 900 matches similar to: "geokit - using :through to connect models"

2008 Jul 06
1
GeoKit / Form Validation
I am new to rails and have been scouring the web for the past two days trying to figure out 2 things. 1) I am currently using a form with 2 models. The first is person, the second is address. I attempted to duplicate the two models on one form as seen in Advanced Rails Recipes and Railscasts, and they work fine - except when there are validation issues on the address piece it just returns saying
2007 Dec 01
0
mock feed
Hello generous coders, I''m having difficulty getting a couple of tests to pass. I have an address model which takes an address and with a callback on save and update passes the address to google''s geocoding service. The returned XML is parsed and saved to the address object: protected def geocode_address key = "mykey" url =
2011 May 31
1
Geokit query with multiple models involved
Hello, My database structure consists of Store, Book, BookStore and Address as below. class Store < ActiveRecord::Base has_many :book_stores has_many :books, :through => :book_stores has_many :addresses acts_as_mappable :through => :addresses end class Address < ActiveRecord::Base belongs_to :store acts_as_mappable end class Book < ActiveRecord::Base has_many
2008 Sep 19
0
Rounding Errors using GeoKit
Hi all, I''m trying to use the excellent GeoKit plugin to geocode addresses entered by users. I use GeoKit to get latitude and longitude values, then plot these using Google Maps. The problem I have is that the maps produced tend to be slightly off where they should be. Nearby addresses seem to be grouped to one point, which suggests that the problem is in rounding the lat and lng values
2008 Feb 07
1
geokit on merb
I converted the rails geokit plugin to a merb plugin today. Anyone interested in testing it out? It seems to be working great for me. If so, where should I put it? I don''t have a blog up or anything right now. Been meaning to do that, but haven''t had the time. -Dusty Doris
2008 Jan 23
3
Find city, state from supplied ZIP Code
Is there a simple solution available that would allow me to take a ZIP Code from a user and then populate City and State fields based on that ZIP? Any kind of a plugin, for example? --~--~---------~--~----~------------~-------~--~----~ 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
2009 Sep 20
3
coordinates for geokit
i''m trying geokit and loving it, but i''m seeing really odd stuff on distances, I''m wondering about the coordinates i''ve got in my DB. I don''t think they''re standard format, they look like this. east 6''41.6 north 45''24.8 Can anyone advise please ? -- Posted via http://www.ruby-forum.com/.
2009 Sep 02
0
Geokit - find within fuzzy locations
I''m using Geokit gem to query mappable records within some distance to a mappable user. When geocoding an address such as "Madrid", lat&lng represent a point, in this case the center of the city. Suppose I have some records with location "Madrid", which are mapped with lat & lng to the center of the city. When querying for the closest record, the inaccuracy
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
Hi, after spending hours on getting geokit and ym4r running I don''t know how to do or how to getting a test running. I have try the tutorial from http://www.railslodge.com/plugins/179-ym4r but I don''t get it :(. Has sone one other tutorials he can recommend? Maybe someone knows were I did my mistake (I only want to show a fixed address, no database connection so far, pure
2010 Dec 14
5
Build associated model confusion
I''m new to Rails3, and I''m just trying to get one last thing to work before I call it a night. The situation is the following (please if the code is horrible, just let me know, still learning): I want to log a dive. I might have a new location on that dive at which point I have to create a new Location, and then create the dive. A dive has_one location. A location has_many
2007 Dec 22
8
Rails 2.0 rescue_from
I am trying to use the new Rails 2.0 macro : rescue_from class PostsController < ApplicationController rescue_from ActiveRecord::RecordNotFound, :with => :deny_access ... def show @post = Post.find_by_id(params[:id]) raise ActiveRecord::RecordNotFound if @post.nil? #illegal access ..... end def deny_access respond_to do |format| format.html end end but the
2009 May 04
6
cucumber - when to stub/mock
I''m just curious about this, since my solution involved stubbing a call to GeoIp. Is there a good rule of thumb for when you make exceptions to the ''no stubbing'' philosophy of Cucumber? My step was: "Given I am accessing the site from Japan," but I can think of other situations - mostly when interacting with web services, that I''d probably
2014 Nov 18
2
[LLVMdev] Summer 2015 internships in Apple's Source Tools & Program Analysis Teams
Hi all, Apple's LLVM Source Tools and Program Analysis teams are now looking for exceptional interns for summer 2015! These are paid internships based onsite at Apple's main campus in Cupertino, California, USA. Internships last 12 weeks, with internships starting in May or later (start dates are flexible). During the internship, interns will work directly with members of Apple's
2012 Oct 23
1
Extracting results from Google Search
Dear list, I have a long list of towns in Africa and would need to get their geographical coordinates. The Google query [/TownName Country coordinates/] works for most of the TownNames I have and give a nicely formatted Google output (try Ingall Niger coordinates for an example). I would like to launch a loop on the list of names I have and automatically extract the coordinates given by Google.
2006 Jun 29
11
AJAX Maps
Hi, I would like to know if there is a library that provides an API to support map scrolling, like the one available in google maps. This is, I would like to create a user interface where the user is able to see a small part of a large map. It can then move the view, thus observing another part of the map. Additionally, I would also like to provide a zoom mechanism. Thanks in advance. --
2011 Mar 18
1
using Geokit with rails3
HI all i am a newbie ,and starting a rails 3 application and my application needs geokit plugin .so anybody knows how to install geokit plugin in rails 3 and using it with the application? I am using ruby 1.9.2 and rails 3.0.3 with mysql2. pls help.. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2010 Jul 19
1
geokit app
Newbie here :) So, a friend mentioned that geokit is the way to go if I want to make a simple location based app. I basically want to make a list of locations so the app should allow me to Create a location, give it a name and an address along with the geo location information associated with it. (Geokit will take care of this last thing right?) I tried looking for sample apps but had no
2011 Mar 18
3
webapplications with rails+geokit
Hi all Anybody knows any webapplictions presently using geokit plugin with rails 2.x or 3.x ? If yes pls send me the url pls. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2010 May 21
0
r83 committed - Making the geocoder pass JSLint
Revision: 83 Author: dezfowler Date: Fri May 21 11:57:43 2010 Log: Making the geocoder pass JSLint http://code.google.com/p/mapstraction/source/detail?r=83 Modified: /trunk/source/mxn.google.geocoder.js ======================================= --- /trunk/source/mxn.google.geocoder.js Wed May 19 16:33:35 2010 +++ /trunk/source/mxn.google.geocoder.js Fri May 21 11:57:43 2010 @@ -28,7 +28,7 @@
2007 Aug 14
3
diffusing GIS data in maps
Hi- I am trying to find a way to diffuse GIS data on a European map. I have a dataset consisting of particular locations scattered across Europe, along with magnitude and value information. I can plot these as discrete points with something like the following: "geocode" is a dataframe with four columns: LAT; LONG; MAGNITUDE;VALUE. library(maps) library(mapdata)