How to connect gmap with rails.

I 'm getting like this while running server..

Attachments:
http://www.ruby-forum.com/attachment/7712/Screenshot.jpg

I 'm getting like this while running server..

Attachments:
http://www.ruby-forum.com/attachment/7712/Screenshot.jpg

It is best to ask a question so that we know what it is that you want
to know. Also best to copy and paste the output rather than a
screenshot so that it is easier to comment on.

Colin

balaji@balaji-desktop:~$ cd myrails
balaji@balaji-desktop:~/myrails$ cd gmaps
balaji@balaji-desktop:~/myrails/gmaps$ rails s
/usr/local/lib/ruby/1.8/webrick/httpservlet/cgihandler.rb:20: Use
RbConfig instead of obsolete and deprecated Config.
=> Booting WEBrick
=> Rails 3.2.8 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins!
Support for these plugins will be removed in Rails 4.0. Move them out
and bundle them in your Gemfile, or fold them in to your app as
lib/myplugin/* and config/initializers/myplugin.rb. See the release
notes for more on this:
http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released.
(called from /home/balaji/myrails/gmaps/config/environment.rb:5)
[2012-09-04 10:10:59] INFO WEBrick 1.3.1
[2012-09-04 10:10:59] INFO ruby 1.8.8 (2012-07-27) [i686-linux]
[2012-09-04 10:11:04] INFO WEBrick::HTTPServer#start: pid=2278
port=3000

Started GET "/assets/rails.png" for 127.0.0.1 at Tue Sep 04 10:12:53
+0530 2012
Connecting to database specified by database.yml
Served asset /rails.png - 200 OK (14ms)

Started GET "/locations" for 127.0.0.1 at Tue Sep 04 10:13:03 +0530 2012

SyntaxError (/home/balaji/myrails/gmaps/app/models/location.rb:7: syntax
error, unexpected tIDENTIFIER, expecting kDO or '{' or '('
            directly a db column, you can dry your code, see wiki
                                         ^
/home/balaji/myrails/gmaps/app/models/location.rb:7: syntax error,
unexpected tIDENTIFIER, expecting kDO or '{' or '('):
  app/controllers/locations_controller.rb:1

  Rendered
/usr/local/lib/ruby/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb
(2.8ms)
  Rendered
/usr/local/lib/ruby/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
(5.2ms)
  Rendered
/usr/local/lib/ruby/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
within rescues/layout (28.0ms)

Started GET "/locations" for 127.0.0.1 at Tue Sep 04 10:14:50 +0530 2012
Processing by LocationsController#index as HTML
  Location Load (30.4ms) SELECT `locations`.* FROM `locations`
  CACHE (0.0ms) SELECT `locations`.* FROM `locations`
  Rendered
/usr/local/lib/ruby/gems/1.8/gems/gmaps4rails-1.5.5/app/views/gmaps4rails/_gmaps4rails.html.erb
(3.9ms)
  Rendered locations/index.html.erb within layouts/application (55.7ms)
Completed 200 OK in 447ms (Views: 288.4ms | ActiveRecord: 75.1ms)

Started GET "/assets/application.css?body=1" for 127.0.0.1 at Tue Sep 04
10:14:50 +0530 2012
Served asset /application.css - 200 OK (13ms)

Started GET "/assets/locations.css?body=1" for 127.0.0.1 at Tue Sep 04
10:14:50 +0530 2012
Served asset /locations.css - 200 OK (90ms)

Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at Tue Sep 04
10:14:50 +0530 2012
Served asset /scaffolds.css - 200 OK (4ms)

Started GET "/assets/gmaps4rails.css?body=1" for 127.0.0.1 at Tue Sep 04
10:14:50 +0530 2012
Served asset /gmaps4rails.css - 200 OK (3ms)

Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Tue Sep 04
10:14:50 +0530 2012
Served asset /jquery.js - 200 OK (10ms)

Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Tue Sep 04
10:14:50 +0530 2012
Served asset /jquery_ujs.js - 200 OK (5ms)

Started GET "/assets/gmaps4rails/gmaps4rails.base.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:50 +0530 2012
Served asset /gmaps4rails/gmaps4rails.base.js - 200 OK (4ms)

Started GET "/assets/gmaps4rails/gmaps4rails.bing.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:50 +0530 2012
Served asset /gmaps4rails/gmaps4rails.bing.js - 200 OK (5ms)

Started GET "/assets/gmaps4rails/gmaps4rails.googlemaps.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:50 +0530 2012
Served asset /gmaps4rails/gmaps4rails.googlemaps.js - 200 OK (6ms)

Started GET "/assets/gmaps4rails/gmaps4rails.mapquest.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:50 +0530 2012
Served asset /gmaps4rails/gmaps4rails.mapquest.js - 200 OK (3ms)

Started GET "/assets/gmaps4rails/gmaps4rails.openlayers.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:51 +0530 2012
Served asset /gmaps4rails/gmaps4rails.openlayers.js - 200 OK (3ms)

Started GET "/assets/locations.js?body=1" for 127.0.0.1 at Tue Sep 04
10:14:51 +0530 2012
Served asset /locations.js - 200 OK (3ms)

Started GET "/assets/application.js?body=1" for 127.0.0.1 at Tue Sep 04
10:14:51 +0530 2012
Served asset /application.js - 200 OK (27ms)

Started GET "/locations" for 127.0.0.1 at Tue Sep 04 10:14:55 +0530 2012
Processing by LocationsController#index as HTML
  Location Load (0.2ms) SELECT `locations`.* FROM `locations`
  CACHE (0.0ms) SELECT `locations`.* FROM `locations`
  Rendered
/usr/local/lib/ruby/gems/1.8/gems/gmaps4rails-1.5.5/app/views/gmaps4rails/_gmaps4rails.html.erb
(2.7ms)
  Rendered locations/index.html.erb within layouts/application (7.5ms)
Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.2ms)

Started GET "/assets/application.css?body=1" for 127.0.0.1 at Tue Sep 04
10:14:55 +0530 2012
Served asset /application.css - 304 Not Modified (0ms)

Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Tue Sep 04
10:14:55 +0530 2012
Served asset /jquery.js - 304 Not Modified (0ms)

Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Tue Sep 04
10:14:55 +0530 2012
Served asset /jquery_ujs.js - 304 Not Modified (0ms)

Started GET "/assets/gmaps4rails.css?body=1" for 127.0.0.1 at Tue Sep 04
10:14:55 +0530 2012
Served asset /gmaps4rails.css - 304 Not Modified (0ms)

Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at Tue Sep 04
10:14:55 +0530 2012
Served asset /scaffolds.css - 304 Not Modified (0ms)

Started GET "/assets/locations.css?body=1" for 127.0.0.1 at Tue Sep 04
10:14:55 +0530 2012
Served asset /locations.css - 304 Not Modified (0ms)

Started GET "/assets/gmaps4rails/gmaps4rails.base.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:55 +0530 2012
Served asset /gmaps4rails/gmaps4rails.base.js - 304 Not Modified (0ms)

Started GET "/assets/gmaps4rails/gmaps4rails.bing.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:55 +0530 2012
Served asset /gmaps4rails/gmaps4rails.bing.js - 304 Not Modified (0ms)

Started GET "/assets/gmaps4rails/gmaps4rails.googlemaps.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:55 +0530 2012
Served asset /gmaps4rails/gmaps4rails.googlemaps.js - 304 Not Modified
(0ms)

Started GET "/assets/gmaps4rails/gmaps4rails.mapquest.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:55 +0530 2012
Served asset /gmaps4rails/gmaps4rails.mapquest.js - 304 Not Modified
(0ms)

Started GET "/assets/gmaps4rails/gmaps4rails.openlayers.js?body=1" for
127.0.0.1 at Tue Sep 04 10:14:55 +0530 2012
Served asset /gmaps4rails/gmaps4rails.openlayers.js - 304 Not Modified
(0ms)

Started GET "/assets/locations.js?body=1" for 127.0.0.1 at Tue Sep 04
10:14:55 +0530 2012
Served asset /locations.js - 304 Not Modified (0ms)

Started GET "/assets/application.js?body=1" for 127.0.0.1 at Tue Sep 04
10:14:55 +0530 2012
Served asset /application.js - 304 Not Modified (1ms)

Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Tue Sep 04
10:14:55 +0530 2012
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
^C[2012-09-04 10:15:18] INFO going to shutdown ...
[2012-09-04 10:15:19] INFO WEBrick::HTTPServer#start done.
Exiting
balaji@balaji-desktop:~/myrails/gmaps$ clear

balaji@balaji-desktop:~/myrails/gmaps$ rails s
/usr/local/lib/ruby/1.8/webrick/httpservlet/cgihandler.rb:20: Use
RbConfig instead of obsolete and deprecated Config.
=> Booting WEBrick
=> Rails 3.2.8 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins!
Support for these plugins will be removed in Rails 4.0. Move them out
and bundle them in your Gemfile, or fold them in to your app as
lib/myplugin/* and config/initializers/myplugin.rb. See the release
notes for more on this:
http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released.
(called from /home/balaji/myrails/gmaps/config/environment.rb:5)
[2012-09-04 10:15:29] INFO WEBrick 1.3.1
[2012-09-04 10:15:29] INFO ruby 1.8.8 (2012-07-27) [i686-linux]
[2012-09-04 10:15:34] INFO WEBrick::HTTPServer#start: pid=2325
port=3000

Started GET "/locations" for 127.0.0.1 at Tue Sep 04 10:15:38 +0530 2012
Connecting to database specified by database.yml
Processing by LocationsController#index as HTML
  Location Load (0.1ms) SELECT `locations`.* FROM `locations`
  CACHE (0.0ms) SELECT `locations`.* FROM `locations`
  Rendered
/usr/local/lib/ruby/gems/1.8/gems/gmaps4rails-1.5.5/app/views/gmaps4rails/_gmaps4rails.html.erb
(3.3ms)
  Rendered locations/index.html.erb within layouts/application (16.8ms)
Completed 200 OK in 135ms (Views: 103.5ms | ActiveRecord: 1.7ms)

Started GET "/assets/application.css?body=1" for 127.0.0.1 at Tue Sep 04
10:15:39 +0530 2012
Served asset /application.css - 304 Not Modified (19ms)

Started GET "/assets/gmaps4rails.css?body=1" for 127.0.0.1 at Tue Sep 04
10:15:39 +0530 2012
Served asset /gmaps4rails.css - 304 Not Modified (3ms)

Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at Tue Sep 04
10:15:39 +0530 2012
Served asset /jquery_ujs.js - 304 Not Modified (4ms)

Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at Tue Sep 04
10:15:39 +0530 2012
Served asset /jquery.js - 304 Not Modified (10ms)

Started GET "/assets/scaffolds.css?body=1" for 127.0.0.1 at Tue Sep 04
10:15:39 +0530 2012
Served asset /scaffolds.css - 304 Not Modified (3ms)

i'm getting error like this..but in brower no error...i can't connect
rails with gmap...

i follwed this link as my reference to do gmap

https://github.com/apneadiving/Google-Maps-for-Rails

i don know what is that problem...i'm getting plain page as my output..

I hope you need to include the required javascript files in the layout.

Did you not see this error? You have a syntax error at line 7 of location.rb

Colin

how can i install those javascript files..can you tell me ?