欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2/Agda, C++/Lisp/Haskell
Enterprise Ruby
第37行: | 第37行: | ||
*[[YM4R]] | *[[YM4R]] | ||
*Beginning Google Maps Applications with Rails and Ajax: http://book.earthcode.com/ | *Beginning Google Maps Applications with Rails and Ajax: http://book.earthcode.com/ | ||
+ | |||
+ | Yahoo Map: | ||
+ | $ rails yahoo | ||
+ | $ cd yahoo | ||
+ | $ ruby script/generate controller intro | ||
+ | vi app/views/intro/map.rhtml | ||
+ | <nowiki> <html> | ||
+ | <head> | ||
+ | <script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=pPDCgjnV34FJ3TxysU9K.FpFYQ3A_QYJ4VrAJQuyFcFv91Hf0r3PU5tr3SYBhMvOoM__"> | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | function load () { | ||
+ | // Create a map object | ||
+ | var map = new YMap(document.getElementById('map')); | ||
+ | // Add map type control | ||
+ | map.addTypeControl(); | ||
+ | // Set map type to either of: YAHOO_MAP_SAT, | ||
+ | // YAHOO_MAP_HYB, YAHOO_MAP_REG | ||
+ | map.setMapType(YAHOO_MAP_HYB); | ||
+ | // Display the map centered on a geocoded location | ||
+ | map.drawZoomAndCenter("Berlin", 3); | ||
+ | } | ||
+ | </script> | ||
+ | </head> | ||
+ | |||
+ | <body onload="load()"> | ||
+ | <div id="map" style="width: 500px; height: 500px"></div> | ||
+ | </body> | ||
+ | </html></nowiki> | ||
+ | http://localhost:3000/intro/map | ||
+ | from Rails GIS Hacks | ||
==相关链接== | ==相关链接== | ||
*Enterprise Ruby On Rails - http://defendem.com/read/book/1 | *Enterprise Ruby On Rails - http://defendem.com/read/book/1 | ||
*Enterprise Integration with Ruby - http://www.pragmaticprogrammer.com/titles/fr_eir/ | *Enterprise Integration with Ruby - http://www.pragmaticprogrammer.com/titles/fr_eir/ | ||
*Enterprise Ruby Studio - http://pragmaticstudio.com/ruby/ | *Enterprise Ruby Studio - http://pragmaticstudio.com/ruby/ |
2008年4月29日 (二) 13:20的版本
Ruby的企业级应用.
期待看到企业级市场 Java, Python, Ruby 三足鼎立的局面.
此外, Huihoo对Ruby的应用提供支持与服务: Huihoo Ruby Applications
目录 |
相关项目
- ActiveWarehouse
- RubyWorks
- RedMine
- OpenWFEru
- Rools
- Ruby Reports
- Ferret
- Capistrano
- Classified Ads
- XLsuite
- RForce
Web Services
Amazon Web Services
eBay Web Services
GIS & Map
- GeoRuby
- GeoKit
- YM4R
- Beginning Google Maps Applications with Rails and Ajax: http://book.earthcode.com/
Yahoo Map:
$ rails yahoo $ cd yahoo $ ruby script/generate controller intro vi app/views/intro/map.rhtml
<html> <head> <script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.7&appid=pPDCgjnV34FJ3TxysU9K.FpFYQ3A_QYJ4VrAJQuyFcFv91Hf0r3PU5tr3SYBhMvOoM__"> </script> <script type="text/javascript"> function load () { // Create a map object var map = new YMap(document.getElementById('map')); // Add map type control map.addTypeControl(); // Set map type to either of: YAHOO_MAP_SAT, // YAHOO_MAP_HYB, YAHOO_MAP_REG map.setMapType(YAHOO_MAP_HYB); // Display the map centered on a geocoded location map.drawZoomAndCenter("Berlin", 3); } </script> </head> <body onload="load()"> <div id="map" style="width: 500px; height: 500px"></div> </body> </html>
http://localhost:3000/intro/map
from Rails GIS Hacks
相关链接
- Enterprise Ruby On Rails - http://defendem.com/read/book/1
- Enterprise Integration with Ruby - http://www.pragmaticprogrammer.com/titles/fr_eir/
- Enterprise Ruby Studio - http://pragmaticstudio.com/ruby/