Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ruby on Rails(ROR)

¶¨Òå
¡¡RoRÊÇRuby on RailsµÄËõд¡£Ruby on RailsÊÇÒ»¸öÓÃÓÚ±àдÍøÂçÓ¦ÓóÌÐòµÄ¿ò¼Ü£¬Ëü»ùÓÚ¼ÆËã»úÈí¼þÓïÑÔRuby£¬¸ø³ÌÐò¿ª·¢ÈËÔ±Ìṩǿ´óµÄ¿ò¼ÜÖ§³Ö¡£Ruby on Rails°üÀ¨Á½²¿·ÖÄÚÈÝ£ºRubyÓïÑÔºÍRails¿ò¼Ü¡£
ʲôÊÇRuby?
¡¡¡¡Ruby ÓïÑÔÊÇÒ»ÖÖ¶¯Ì¬ÓïÑÔ£¬ËüÓëPython¡¢SmalltalkºÍPerlÕâ3ÖÖ±à³ÌÓïÑÔÓÐЩÀàËÆ¡£RubyÓïÑÔÆðÔ´ÓÚÈÕ±¾£¬ËüµÄÑз¢ÕßÊÇÈÕ±¾ÈËËɱ¾Ðк루Matsumoto Yukihiro£©¡£Ëɱ¾ÐкëÔÚ1993Ä꿪ʼ×ÅÊÖRubyÓïÑÔµÄÑз¢¹¤×÷£¬Ëû¿ª·¢RubyÓïÑԵijõÖÔÊÇΪÁËÌá¸ß±à³ÌµÄЧÂÊ¡£ 1995Äê12ÔÂMatzÍƳöÁËRubyµÄµÚÒ»¸ö°æ±¾Ruby 0.95¡£
¡¡¡¡RubyÓïÑÔµÄÖ÷ÒªÌصãÈçÏ£º
¡¡¡¡1£®´¿µÄÃæÏò¶ÔÏóÓïÑÔ
¡¡¡¡ÔÚRubyÖУ¬Ò»ÇнÔÊǶÔÏó¡£ÏÂÃæ¾ÙÒ»¸öÀý×ÓÀ´¸üÖ±¹ÛµØ˵Ã÷RubyÓïÑÔµÄÕâÒ»Ìص㡣
¡¡¡¡ÔÚJavaÖУ¬ÇóÒ»¸öÊýµÄ¾ø¶ÔÖµµÄ´úÂëÈçÏ¡£
¡¡¡¡int c = Math.abs(-20);
¡¡¡¡¶øÔÚRubyÓïÑÔÖУ¬Ò»ÇнÔÊǶÔÏó£¬Ò²¾ÍÊÇ˵“-20”Õâ¸öÊýÒ²ÊÇÒ»¸ö¶ÔÏó£¬Òò´Ë£¬ÇóÒ»¸öÊý¾ø¶ÔÖµµÄRuby´úÂëÐÎʽÈçÏ¡£
¡¡¡¡c = -20.abs
¡¡¡¡ÕâÑùµÄ´úÂë±àд·½Ê½ÊDz»ÊǸüÐÎÏóһЩÄØ£¿
¡¡¡¡2£®½âÊÍÐͽű¾ÓïÑÔ
¡¡¡¡Ruby ÓïÑÔÊǽâÊÍÐͽű¾ÓïÑÔ£¬Ëü¼ÈÓнű¾ÓïÑÔÇ¿´óµÄ×Ö·û´®´¦ÀíÄÜÁ¦ºÍÕýÔò±í´ïʽ£¬ÓÖ²»Ê§½âÊÍÐÍÓïÑԵĶ¯Ì¬ÐÔ¡£Ò»·½Ã棬ÔÚ×î³õÉè¼ÆRubyÓïÑÔʱ£¬RubyµÄÑз¢ÕßËɱ¾Ðк뿼Âǵ½ÎÄ×Ö´¦Àí·½ÃæµÄÐèÒª£¬Ëû½è¼øÁËPerlÓïÑÔÔÚÎÄ×Ö´¦Àí·½ÃæµÄ³É¹¦¾­Ñé¡£ÁíÒ»·½Ã棬Ëɱ¾Ðк뽫RubyÓïÑÔÉ趨ΪһÖÖ½âÊÍÐÍÓïÑÔ£¬Ruby µÄ¶¯Ì¬ÐÔʹµÃÓÉRubyÓïÑÔ±àдµÄ³ÌÐò²»ÐèÒªÊÂÏȱàÒë¼´¿ÉÖ±½ÓÔËÐУ¬ÕâΪ³ÌÐòµÄµ÷ÊÔ´øÀ´ÁË·½±ã¡£Í¬Ê±£¬ÕâÒ»Ìصã¿ÉÒÔʵÏÖ¿ª·¢¹ý³ÌÖеĿìËÙ·´À¡¡£
¡¡¡¡3£®ÆäËûÌصã
¡¡¡¡£¨1£©¶¯Ì¬ÔØÈë¡£¿ÉÒÔÔÚÔËÐÐʱºòÖض¨Òå×Ô¼º£¬ÀàÒ²¿ÉÒÔÔÚÔËÐÐʱ¼Ì³Ð»òÈ¡Ïû¼Ì³Ð¡£
¡¡¡¡£¨2£©×Ô¶¯ÄÚ´æ¹ÜÀí»úÖÆ¡£
¡¡¡¡£¨3£©¶à¾«¶ÈÕûÊý¡£
¡¡¡¡£¨4£©µü´úÆ÷ºÍ±Õ°ü¡£
¡¡¡¡£¨5£©¿ªÔ´ÏîÄ¿¡£ÓдóÁ¿»îÔ¾µÄÉçÇøÖ§³ÖRubyÓïÑÔ¡£
ʲôÊÇRails?
¡¡¡¡ËäÈ»RubyÓïÑÔÓкܶàÓŵ㣬µ«ÊÇÒ»Ö±ÒÔÀ´£¬ÆäÁ÷Ðеķ¶Î§Ò²½öÏÞÓÚÈÕ±¾¡£Ö±µ½2004Ä꣬Ruby²ÅÖð½¥±»ÊÀ½çÉÏÆäËûµØÇøµÄÈËÃÇËùÈÏʶ£¬ÄÇôÊÇʲôÈÃRubyÓïÑÔ×ßÏòÊÀ½çµÄÄØ£¿ÊÇRails¡£
¡¡¡¡Rails ¿ò¼ÜÊ×´ÎÌá³öÊÇÔÚ2004Äê7Ô£¬ËüµÄÑз¢ÕßÊÇ26ËêµÄµ¤ÂóÈËDavid Heinemeier Hansson¡£²»Í¬ÓÚÒÑÓи´ÔÓµÄWeb ¿ª·¢¿ò¼Ü£¬ RailsÊÇÒ»¸ö¸ü·ûºÏʵ¼ÊÐèÒª¶øÇÒ¸ü¸ßЧµÄWeb¿ª·¢¿ò¼Ü¡£Rails½áºÏÁËPHPÌåϵµÄÓŵ㣨¿ìËÙ¿ª·¢£©ºÍJavaÌåϵµÄÓŵ㣨³ÌÐò¹æÕû£©£¬Òò´Ë£¬ RailsÔÚÆäÌá³öºó²»³¤µÄʱ¼äÀï¾ÍÊܵ½ÁËÒµÄڹ㷺µ


Ïà¹ØÎĵµ£º

Cassandra in Action with Twitter's Ruby Client

ÓÐÒ»¸öȫеÄÏîÄ¿£¬ÒòΪ¿¼Âǵ½½«À´µÄÊý¾ÝÀ©Õ¹ÐÔÄÜ£¬ËùÒÔ¿¼ÂÇÓÃCassandra×öÊý¾Ý´æ´¢£¬Ç°¶ËÓÃLighttpd + FastCGI + Rails¡£ÔÚʹÓÃCassandraµÄʱºò£¬¾õµÃÓÐһЩ¶«Î÷¿ÉÄÜ´ó¼Ò¶¼ÐèÒª£¬¾ÍдÁËÒ»¸ö¼òµ¥µÄÖ¸ÄÏ¡£ÒòΪÄÚÈݱȽϳ¤£¨16Ò³£©£¬¾ÍŪÁ˸öPDFÎļþ¸ø´ó¼ÒÏÂÔØ¡£
Cassandra in Action with Twitter's Ruby Client.pdf
Èç¹ûÏÂÔ ......

¼Ç¼ÏÂ×Ô¼ºUbunt 10.04 ´î½¨ruby on rails»·¾³

1¡¢°²×°ubuntu
һ·next£¬¼Çס°²×°Ó¢ÎÄ°æ¡£´ý°²×°Íê±Ïºó£¬Ê×ÏÈÑ¡Ôñ“Èí¼þÔ´”£¬ÏµÍ³--ϵͳ¹ÜÀí-Èí¼þÔ´£¬¹úÄÚÒ»°ãÑ¡ÔñµÄÊÇ£ºhttp://ubuntu.cn99.com/ubuntu;½Ó×Å°²×°ÖÐÎÄ°ü£¬Ñ¡ÔñÈí¼þÔ´¾ÍÊÇΪÁËÏÂÔØÈí¼þµÄËٶȸü¿ì£¬°²×°Íê³ÉºóÖØÆôubuntu£¬ÖØÆôºó»áÌáʾÊÇ·ñ¸Ä±äijЩÎļþ¼ÐÃû³Æ£¬Ñ¡Ôñ“·ñ”£¬·Àֹϵͳ¶Ô ......

Installing Ruby 1.8.6 from Source on Ubuntu

Installing Ruby from source is my preferred method, although in Ubuntu Feisty you can supposedly install it with apt-get install ruby
now. Here’s the essential packages needed to get a source build working right though and the process I just went through:
sudo apt-get install build-essentia ......

Install ruby 1.9 on Windows using zip binary

Update:  This post is outdated. All in one installer for 1.9
is ready now, you should use it if you need 1.9 on windows. Get it here
http://rubyforge.org/frs/?group_id=167
Ruby has “all-in-one” installer for Windows, but it is outdated. As
of May 2009, Ruby 1.9.1 is released, ......

Ruby Ruportʵ¼ù—±¨±í²ÎÊýʵÏÖ

´ËÀý×ÓÔÚ Ruby Ruportʵ¼ù—¼òµ¥±¨±íϵͳ ¼° Ruby Ruportʵ¼ù—ÖÐÎÄPDF±¨±íÖ®PRAWN  µÄ»ù´¡ÉϽøÐÐÍêÉÆ£¬Ìí¼ÓÁ˶Ա¨±í²ÎÊýµÄÉè¼Æ¼°ÊµÏÖ¡£
Ò»¡¢´´½¨Êý¾Ý±íreport_parameters
create table report_parameters
(report_parameter_id integer not null auto_increment,
report_execute_id integer not null, ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ