Comments on: Ruby on Rails code download http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/ with PHP or Rails and AJAX: From Novice to Professional Thu, 21 Jul 2011 18:23:08 +0000 http://wordpress.org/?v=2.3.3 By: Andre http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19742 Andre Sun, 13 Jan 2008 08:02:45 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19742 @Charles: Yahoo requests that you create a key for each application, but at the time of writing it wasn't actually required to run your app. For geocoding purposes (I'm not sure about displaying maps), you can enter a pseudo-url like http://localhost @Jean, @Aruna -- the single quote and double quote in Ruby are essentially identical except that the single quote does not allow interpolation. If the single quote character is the problem (perhaps because it was typed or copied as "curly quotes"), it can be replaced with normal single quotes or normal double quotes. @Charles: Yahoo requests that you create a key for each application, but at the time of writing it wasn’t actually required to run your app. For geocoding purposes (I’m not sure about displaying maps), you can enter a pseudo-url like http://localhost

@Jean, @Aruna — the single quote and double quote in Ruby are essentially identical except that the single quote does not allow interpolation. If the single quote character is the problem (perhaps because it was typed or copied as “curly quotes”), it can be replaced with normal single quotes or normal double quotes.

]]>
By: Charles http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19589 Charles Fri, 11 Jan 2008 18:04:57 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19589 Many things are going wrong here. First of all, Sandra's problem is one that I encountered and solved yesterday. They are typos in the book. I just sent you an email. And the code differences that Jon mentioned, as well as many sections of code missing from the ZIP file, waste the reader's time and make it a real hassle to understand what's going on. The book is good, but these items need to be addressed now. Is there a later version of the book we can all get to stop the confusion? Here is the info from my book: Copyright 2007 ISBN-13 (pbk): 978-1-59059-787-3 ISBM-10 (pbk): 1-59059-787-7 Many things are going wrong here. First of all, Sandra’s problem is one that I encountered and solved yesterday. They are typos in the book. I just sent you an email.

And the code differences that Jon mentioned, as well as many sections of code missing from the ZIP file, waste the reader’s time and make it a real hassle to understand what’s going on. The book is good, but these items need to be addressed now.

Is there a later version of the book we can all get to stop the confusion? Here is the info from my book:
Copyright 2007
ISBN-13 (pbk): 978-1-59059-787-3
ISBM-10 (pbk): 1-59059-787-7

]]>
By: Jean Moreau http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19424 Jean Moreau Thu, 10 Jan 2008 03:25:53 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19424 @Aruna The problem is with GOOGLE_MAPS_KEY=’your-google-maps-api-key’ found in the instructions It should be GOOGLE_MAPS_KEY="your-google-maps-api-key" Note the double quotes @Aruna

The problem is with GOOGLE_MAPS_KEY=’your-google-maps-api-key’ found in the instructions

It should be GOOGLE_MAPS_KEY=”your-google-maps-api-key”

Note the double quotes

]]>
By: Charles http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19361 Charles Wed, 09 Jan 2008 16:46:09 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19361 On page 84, the section named "Yahoo Geocoder Requests". You need a Yahoo API key, which you say on page 82 is "application specific". So what is the Web Application URL (For example: 'http://myapp.com/welcome.html') that someone should enter on the YAHOO API Registration page (http://developer.yahoo.com/wsregapp/index.php) that the reader of your book can use for the rake task (listing 4-6) on page 85? On page 84, the section named “Yahoo Geocoder Requests”. You need a Yahoo API key, which you say on page 82 is “application specific”. So what is the Web Application URL (For example: ‘http://myapp.com/welcome.html’) that someone should enter on the YAHOO API Registration page (http://developer.yahoo.com/wsregapp/index.php) that the reader of your book can use for the rake task (listing 4-6) on page 85?

]]>
By: Andre http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19269 Andre Tue, 08 Jan 2008 19:09:20 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19269 @Sandra -- I don't have ready access to an Instant Rails installation these days. My best guess is that Instant Rails' mysql binary isn't in your path. You can either modify your path to include the mysql binary, or cd into into where ever mysqlimport lives in your Instant Rails installation. @Sandra — I don’t have ready access to an Instant Rails installation these days. My best guess is that Instant Rails’ mysql binary isn’t in your path. You can either modify your path to include the mysql binary, or cd into into where ever mysqlimport lives in your Instant Rails installation.

]]>
By: Andre http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19268 Andre Tue, 08 Jan 2008 19:02:03 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19268 Hi Charles, good eye. Hopefully you got the stores.yml file I emailed you yesterday, and I have also put up test/fixtures/stores.yml the Rails code zip file download. Cheers, Andre Hi Charles, good eye. Hopefully you got the stores.yml file I emailed you yesterday, and I have also put up test/fixtures/stores.yml the Rails code zip file download.

Cheers,

Andre

]]>
By: Charles Kogge http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19174 Charles Kogge Mon, 07 Jan 2008 16:51:46 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19174 Another issue - Ronjon's "stores.yml". Maybe it exists somewhere, but I've spent the last hour looking for it in the download code and the Ronjon site, and I can't find it. I've found a "stores.XML file somewhere (I forget exactly where now). "stores.yml" and all the other listings whould appear in the download file. Please get out ahead of me and your other readers now by reviewing Chapters 4 and beyond, adding all of the files that are needed. Thanks. Another issue - Ronjon’s “stores.yml”. Maybe it exists somewhere, but I’ve spent the last hour looking for it in the download code and the Ronjon site, and I can’t find it. I’ve found a “stores.XML file somewhere (I forget exactly where now). “stores.yml” and all the other listings whould appear in the download file. Please get out ahead of me and your other readers now by reviewing Chapters 4 and beyond, adding all of the files that are needed. Thanks.

]]>
By: Andre Lewis http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19137 Andre Lewis Mon, 07 Jan 2008 07:37:30 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-19137 @Charles, @Jon - the code went through some changes after the book was published. Sorry for any frustration the discrepancies have caused. @Charles, @Jon - the code went through some changes after the book was published. Sorry for any frustration the discrepancies have caused.

]]>
By: Charles Kogge http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-18894 Charles Kogge Fri, 04 Jan 2008 18:24:41 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-18894 I have the Rails book. In Listing 3-5 in the book, the createMarker() function does not look anything like the code download named chap_three_final.js Why is this so? Thank you. I have the Rails book. In Listing 3-5 in the book, the createMarker() function does not look anything like the code download named chap_three_final.js

Why is this so? Thank you.

]]>
By: Sandra http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-14011 Sandra Wed, 10 Oct 2007 10:55:40 +0000 http://www.googlemapsbook.com/2007/03/05/ruby-on-rails-code-download/#comment-14011 hi, i'm getting a mysqlimport not recognized as an internal or external command when running the following import [page 107 in the book]: mysqlimport --delete --fields-terminated-by='|' –columns= unique_si,lat_deg,lat_min,lat_sec,lat_dir,latitude,long_deg,long_min, long_sec,long_dir,longitude --user=root --local maps_development fcc_locations.dat i'm using instantrails on windows. thanks for any help hi, i’m getting a mysqlimport not recognized as an internal or external command when running the following import [page 107 in the book]:

mysqlimport –delete –fields-terminated-by=’|’ –columns=
unique_si,lat_deg,lat_min,lat_sec,lat_dir,latitude,long_deg,long_min,
long_sec,long_dir,longitude –user=root –local maps_development fcc_locations.dat

i’m using instantrails on windows.

thanks for any help

]]>