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

目录

相关项目

Web Services

Amazon Web Services

eBay Web Services

GIS & Map

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

相关链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱