Ruby Shoes µÄÊó±êʼþ
ÒòΪһ´ÎżȻµÄ»ú»á½Ó´¥ÁËRubyÓïÑÔ¡£È»ºóÏÂÔØÁËRuby Shoes¹¤¾ß¡£
·¢ÏÖRuby»¹ÊÇÂùÓÐȤµÄ¡£
»¨ÁËÒ»¶Îʱ¼äÊìϤÁËËüµÄÓï·¨¡£
ÏÂÃæÀ´ÊÔÊÔËüµÄÊó±ê¹¦ÄÜ¡£
Shoes.app do
#ͼƬ³õʼ»¯
@img = image "http://www.google.cn/intl/zh-CN/images/logo_cn.gif"
#ͼƬ¹ØÓÚÊó±êµÄµ÷ÓÃ
@img.click { @p.replace "img click" }
@img.release { @p.replace "img release" }
@img.hover { @p.replace "img hover" }
@img.leave { @p.replace "img leave" }
#ÏÔʾµ÷ÓõÄÐÅÏ¢
@p = para
end
½èÓÃÁËGoogleµÄͼ±ê£¬Í¨¹ýÉÏÃæ¼¸ÐдúÂ룬»ù±¾ÉÏÄÜÁ˽âÁËÊó±êʼþµÄµ÷Ó÷½·¨¡£
¾ÍÊDz»ÖªµÀÈçºÎÔٴε÷Óô«µÝ½øÀ´µÄimg¡£Õâ¸öÎÊÌ⻹ÔÚѰÕҴ𰸡£
Èç¹ûÄÄλ¸ßÊÖÄܹ»²»Áߴͽ̣¬ÄÇÕæÊǸÐлÁË¡£
Ïà¹ØÎĵµ£º
While looking for information on the subject, I looked into the ONLamp article Extending Ruby with C by Garrett Rooney, the Extending Ruby chapter in the Pickaxe, README.EXT (located at /usr/share/doc/ruby1.8-dev/README.EXT.gz on my Ubuntu system) and got some help from Kjetil.
The resulting file c ......
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 680460288 22 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......
¶©µ¥´¦Öã¬Ê×ÏÈÒªÓÐÒ»¸ö¶©µ¥µÄÏêϸÁÐ±í£¨°üÀ¨ÊýÁ¿£¬¼ÛǮɶµÄ£©ºÍÒ»¸ö¶ÔÓÚ¸öÈ˵ÄһЩÐÅÏ¢µÄÒ»¸ö±í¡£Òò¶øÎÒÃÇ´´ÔìÁ½¸öÄ£ÐÍ£¬line_item(ÁбíÏî),order(Áбí)£¬Æäºó±àÕßÈç´Î
/db/migrate xxx_create_order xxx_line_item
Ruby´úÂë
Ò».class CreateOrders < ActiveRecord::Migration
¶þ.def self.up
3. create_tabl ......
ruby on rails°²×°mysqlÊý¾Ý¿â
1. ÏÂÔØmysqlÈí¼þ
http://www.mysql.cn/
mysqlÖÐÎĹٷ½ÍøÕ¾ÏÂÔØ°²×°Èí¼þ£¬Ñ¡Ôñ5.0
2. °²×°mysql£¬ÉèÖÃĬÈÏ×Ö·û¼¯Îªutf-8
3. ÏÂÔØmysql for rubyµÄÇý¶¯²¢°²×°
http://rubyforge.org/ËÑË÷mysql£¬ÕÒµ½mysql -win
µã»÷ÏÂÔØ£¬½øÈëÒ³Ãæ
http://rubyforge.org/frs/?group_id= ......
¹«Ë¾ÀïÔ½À´Ô½¶àµÄ½Ó¿ÚÒÔICE·½Ê½ÌṩÁË£¬ÒÔǰû½Ó´¥¹ý£¬ËùÒÔÎÒÕâÁ½ÌìÒ²³éÁ˵ãʱ¼äÑо¿ÁËÏÂICE£¬²Î¿¼ÁËÍøÉϺܶàÌû×Ó£¬²ÅÖÕÓÚÅÜͨµÚÒ»¸ö¼òµ¥µÄICE
½ÓÏÂÀ´ÌùÉÏÎÒËùÓл·¾³µÄ´î½¨¹ý³ÌÒÔ¼°´úÂ룬ºÍ´ó¼Ò·ÖÏíÏÂICEËù´øÀ´µÄ¿ìÀÖ
ICEÊÇʲôÎҾͲ»¶à˵ÁË
1¡¢ Ò»¿î¸ßÐÔÄܵÄÖмä¼þ£¬»ùÓÚICE¿ÉÒÔʵÏÖµçÐż¶µÄ½ ......