??xml version="1.0" encoding="utf-8" standalone="yes"?>久久亚洲精品爱爱,在线碰免费视频在线观看,欧美成人精品一区二区http://www.aygfsteel.com/zidoing/category/8592.htmlq途师渡,悟了自渡?/description>zh-cnWed, 28 Feb 2007 04:11:55 GMTWed, 28 Feb 2007 04:11:55 GMT60Top 30 Ruby on Rails Tutorialshttp://www.aygfsteel.com/zidoing/archive/2006/07/17/58539.htmlzidoingzidoingMon, 17 Jul 2006 03:42:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/07/17/58539.htmlhttp://www.aygfsteel.com/zidoing/comments/58539.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/07/17/58539.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/58539.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/58539.htmlhttp://www.econsultant.com/web-developer/ruby-rails-tutorials/

zidoing 2006-07-17 11:42 发表评论
]]>
转蝲 用Ruby 创徏领域特定语言QDSLQ?http://www.aygfsteel.com/zidoing/archive/2006/07/11/57707.htmlzidoingzidoingTue, 11 Jul 2006 12:20:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/07/11/57707.htmlhttp://www.aygfsteel.com/zidoing/comments/57707.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/07/11/57707.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/57707.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/57707.htmlhttp://uncutstone.blogdriver.com/uncutstone/1196082.html

zidoing 2006-07-11 20:20 发表评论
]]>
一个简单的RJS例子http://www.aygfsteel.com/zidoing/archive/2006/06/21/54330.htmlzidoingzidoingWed, 21 Jun 2006 10:01:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/06/21/54330.htmlhttp://www.aygfsteel.com/zidoing/comments/54330.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/06/21/54330.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/54330.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/54330.html1.建立一个将被rjs模板更新的视?
    <h1 id='header'>RJS Template Test</h1>
    <ul id='list'>
      <li>Dog</li>
      <li>Cat</li>
      <li>Mouse</li>
    </ul>
    <%= link_to_remote("Add a fox",
          :url =>{ :action => :add }) %>
         
定你引入了javascriptcd
<%= javascript_include_tag :defaults %>

2.在link_to_remote指向的控制器中加入一个方?/p>

def add
end

3.rails寻找扩展名?rjs,.rhtml,rxml的模?因此建立一个名?br />add.rjs的文?q输?

page.insert_html :bottom, 'list',
                 content_tag("li", "Fox")
page.visual_effect :highlight, 'list', :duration => 3
page.replace_html 'header',
                  'RJS Template Test Complete!'
                 
                 
4.启动服务?在浏览器面点击"Add a fox",可以看到效果了.



zidoing 2006-06-21 18:01 发表评论
]]>
一个值得x的关于ruby和rails的中文网?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/06/05/50386.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Sun, 04 Jun 2006 18:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/06/05/50386.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/50386.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/06/05/50386.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/50386.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/50386.html</trackback:ping><description><![CDATA[q是一个深入介lruby和rails的中文网站,值得学习ruby和rails的hx?br /><a >http://www.rubytao.com/</a><img src ="http://www.aygfsteel.com/zidoing/aggbug/50386.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-06-05 02:33 <a href="http://www.aygfsteel.com/zidoing/archive/2006/06/05/50386.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Rails migration?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/06/03/50175.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Sat, 03 Jun 2006 14:08:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/06/03/50175.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/50175.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/06/03/50175.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/50175.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/50175.html</trackback:ping><description><![CDATA[migration好像是rails 1.0出的功能,到底它是什么什么东?用来q吗?且听下面分解.<br /><a >http://blogsite.3322.org/jspwiki/pages/viewblog?id=2539</a><img src ="http://www.aygfsteel.com/zidoing/aggbug/50175.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-06-03 22:08 <a href="http://www.aygfsteel.com/zidoing/archive/2006/06/03/50175.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>两篇关于RJS文章http://www.aygfsteel.com/zidoing/archive/2006/05/29/48757.htmlzidoingzidoingMon, 29 May 2006 07:07:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/05/29/48757.htmlhttp://www.aygfsteel.com/zidoing/comments/48757.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/05/29/48757.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/48757.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/48757.htmlhttp://www.hhtong.com/blog1/articles/2006/04/23/rails20060423_rjs_simple
Rails框架技术讲座:q一步用RJS模板语言
http://www.hhtong.com/blog1/articles/2006/04/26/rails20060425_rjs_dynamic


zidoing 2006-05-29 15:07 发表评论
]]>
Ruby on Rails ?Oracle 应用Q简易教E?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/05/26/48250.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Thu, 25 May 2006 17:49:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/05/26/48250.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/48250.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/05/26/48250.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/48250.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/48250.html</trackback:ping><description><![CDATA[ <span id="wmqeeuq" class="topstoryhead">Ruby on Rails ?Oracle 应用Q简易教E?/span> <br /> <a >http://www.oracle.com/technology/global/cn/pub/articles/haefel-oracle-ruby.html</a> <img src ="http://www.aygfsteel.com/zidoing/aggbug/48250.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-05-26 01:49 <a href="http://www.aygfsteel.com/zidoing/archive/2006/05/26/48250.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>两篇关于ROR配置环境的文?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/05/24/47841.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Wed, 24 May 2006 08:38:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/05/24/47841.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/47841.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/05/24/47841.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/47841.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/47841.html</trackback:ping><description><![CDATA[Guide: Environments in Rails 1.1<br /><a >http://glu.ttono.us/articles/2006/05/22/guide-environments-in-rails-1-1</a><br /><br />Configuring Rails Environments: The Cheat Sheet<br /><a >http://glu.ttono.us/articles/2006/05/22/configuring-rails-environments-the-cheat-sheet</a><img src ="http://www.aygfsteel.com/zidoing/aggbug/47841.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-05-24 16:38 <a href="http://www.aygfsteel.com/zidoing/archive/2006/05/24/47841.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>译《Learning Ruby?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/05/05/44696.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Fri, 05 May 2006 15:41:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/05/05/44696.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/44696.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/05/05/44696.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/44696.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/44696.html</trackback:ping><description><![CDATA[ <p>最q打翻译一些关于ruby的入门资料,选择《Learning Ruby》。如果有兴趣的朋友可以大家一h完成。目前已译的:<br /><a >http://rorwiki.hellopen.net/index.php?title=%E5%AD%A6%E4%B9%A0ruby</a></p> <img src ="http://www.aygfsteel.com/zidoing/aggbug/44696.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-05-05 23:41 <a href="http://www.aygfsteel.com/zidoing/archive/2006/05/05/44696.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>require和load的区?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/05/05/44609.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Fri, 05 May 2006 04:32:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/05/05/44609.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/44609.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/05/05/44609.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/44609.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/44609.html</trackback:ping><description><![CDATA[ <p>require和load都是用来引入文gQ那么它们之间有何区别呢Q?br />用个例子来说明:</p> <p>1.Z文greq_load.rb,输入Q?/p> <p>puts("this is req_load.rb file")</p> <p>2.建立test.rb文gQ输入:<br />require("req_load.rb")<br />require("req_load.rb")<br /></p> <p>q行Q?br />ruby test.rb<br /><br />l果Q?br />this is req_load.rb file</p> <p>3.把test.rb中内Ҏ成:<br />load("req_load.rb")<br />load("req_load.rb")<br /><br />q行Q?br />ruby test.rb<br /><br />l果Q?br />this is req_load.rb file<br />this is req_load.rb file</p> <p>对于相同的文件require只会引入一ơ,而load每次调用都引入?/p> <img src ="http://www.aygfsteel.com/zidoing/aggbug/44609.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-05-05 12:32 <a href="http://www.aygfsteel.com/zidoing/archive/2006/05/05/44609.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>明白Migrationshttp://www.aygfsteel.com/zidoing/archive/2006/05/01/44273.htmlzidoingzidoingMon, 01 May 2006 06:45:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/05/01/44273.htmlhttp://www.aygfsteel.com/zidoing/comments/44273.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/05/01/44273.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/44273.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/44273.html阅读全文

zidoing 2006-05-01 14:45 发表评论
]]>
如何使用ajax做实时查?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/04/30/44105.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Sat, 29 Apr 2006 16:43:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/04/30/44105.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/44105.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/04/30/44105.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/44105.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/44105.html</trackback:ping><description><![CDATA[     摘要: 1.引入javascriptcd?<br> <br>使用<%=define_javascript_functions%>或?%= javascript_include_tag :defaults %>  <a href='http://www.aygfsteel.com/zidoing/archive/2006/04/30/44105.html'>阅读全文</a><img src ="http://www.aygfsteel.com/zidoing/aggbug/44105.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-04-30 00:43 <a href="http://www.aygfsteel.com/zidoing/archive/2006/04/30/44105.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ROR中如何用ajaxhttp://www.aygfsteel.com/zidoing/archive/2006/04/30/44102.htmlzidoingzidoingSat, 29 Apr 2006 16:21:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/04/30/44102.htmlhttp://www.aygfsteel.com/zidoing/comments/44102.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/04/30/44102.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/44102.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/44102.html阅读全文

zidoing 2006-04-30 00:21 发表评论
]]>
ROR中图片的上传和显C?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/04/28/43828.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Fri, 28 Apr 2006 08:25:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/04/28/43828.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/43828.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/04/28/43828.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/43828.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/43828.html</trackback:ping><description><![CDATA[     摘要: 囄上传是web应用E序中常用到的,ROR中是如何实现的?nbsp; <a href='http://www.aygfsteel.com/zidoing/archive/2006/04/28/43828.html'>阅读全文</a><img src ="http://www.aygfsteel.com/zidoing/aggbug/43828.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-04-28 16:25 <a href="http://www.aygfsteel.com/zidoing/archive/2006/04/28/43828.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>中文Ruby On Rails wiki上线http://www.aygfsteel.com/zidoing/archive/2006/04/25/43148.htmlzidoingzidoingTue, 25 Apr 2006 15:16:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/04/25/43148.htmlhttp://www.aygfsteel.com/zidoing/comments/43148.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/04/25/43148.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/43148.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/43148.htmlhttp://rorwiki.hellopen.net

zidoing 2006-04-25 23:16 发表评论
]]>
Ruby新手教学Q基本语?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/04/22/42468.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Sat, 22 Apr 2006 04:02:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/04/22/42468.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/42468.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/04/22/42468.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/42468.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/42468.html</trackback:ping><description><![CDATA[     摘要: Ruby新手教学Q基本语?nbsp; <a href='http://www.aygfsteel.com/zidoing/archive/2006/04/22/42468.html'>阅读全文</a><img src ="http://www.aygfsteel.com/zidoing/aggbug/42468.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-04-22 12:02 <a href="http://www.aygfsteel.com/zidoing/archive/2006/04/22/42468.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用插g的方法汉化ROR错误提示信息http://www.aygfsteel.com/zidoing/archive/2006/04/17/41500.htmlzidoingzidoingMon, 17 Apr 2006 11:56:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/04/17/41500.htmlhttp://www.aygfsteel.com/zidoing/comments/41500.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/04/17/41500.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/41500.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/41500.html
2.在新建的文g夹“new_errors”下安一个“lib”的文g夏V?
最后如下:
your_app/vendor/plugins/new_errors/lib
  阅读全文

zidoing 2006-04-17 19:56 发表评论
]]>
ROR插g实现的基本原?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/04/17/41461.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Mon, 17 Apr 2006 07:41:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/04/17/41461.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/41461.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/04/17/41461.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/41461.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/41461.html</trackback:ping><description><![CDATA[     摘要: 要开发plugQ那么rails的版本必L0.14后的?<br> <br>plug的基本原理是什么呢Q我们看一个例子: <br>  <a href='http://www.aygfsteel.com/zidoing/archive/2006/04/17/41461.html'>阅读全文</a><img src ="http://www.aygfsteel.com/zidoing/aggbug/41461.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-04-17 15:41 <a href="http://www.aygfsteel.com/zidoing/archive/2006/04/17/41461.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>推荐一些和Ruby相关的网站和bloghttp://www.aygfsteel.com/zidoing/archive/2006/04/16/41332.htmlzidoingzidoingSun, 16 Apr 2006 07:24:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/04/16/41332.htmlhttp://www.aygfsteel.com/zidoing/comments/41332.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/04/16/41332.html#Feedback1http://www.aygfsteel.com/zidoing/comments/commentRss/41332.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/41332.htmlhttp://www.railscn.com
http://www.aygfsteel.com/cap
http://www.hhtong.com/blog1/
http://www.ruby-lang.tw/
http://willh.org/cfc/wiki/index.php
http://www.moer.net/ruby/doc/index.asp
http://bbs.search-analysis.com/index.php
http://forum.javaeye.com
http://rubycn.ce-lab.net/
http://chinaonrails.com/
http://www.sh.uuzone.com/club/21274/forum/
http://my4java.itpub.net/category/9983/23097
http://blog.csdn.net/ruby_cn
http://rails.techno-weenie.net/

如有遗漏的还希望大家能补充?img src ="http://www.aygfsteel.com/zidoing/aggbug/41332.html" width = "1" height = "1" />

zidoing 2006-04-16 15:24 发表评论
]]>
2.2 Active Record:对Rails模型的支?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/04/14/41076.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Fri, 14 Apr 2006 05:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/04/14/41076.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/41076.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/04/14/41076.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/41076.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/41076.html</trackback:ping><description><![CDATA[     摘要: 通常我们xweb应用E序的信息存储在关系型数据库。订单登录系l将把订单,条目Q和客户的详l信息存储在数据的表中。甚至一些通常使用无组l文本的应用E序Q例如博客和新闻站点Q也l常使用数据库作为它们后台的数据存储?nbsp; <a href='http://www.aygfsteel.com/zidoing/archive/2006/04/14/41076.html'>阅读全文</a><img src ="http://www.aygfsteel.com/zidoing/aggbug/41076.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-04-14 13:16 <a href="http://www.aygfsteel.com/zidoing/archive/2006/04/14/41076.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>1.1 敏捷的Rails(?http://www.aygfsteel.com/zidoing/archive/2006/04/10/40307.htmlzidoingzidoingMon, 10 Apr 2006 11:05:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/04/10/40307.htmlhttp://www.aygfsteel.com/zidoing/comments/40307.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/04/10/40307.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/40307.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/40307.html阅读全文

zidoing 2006-04-10 19:05 发表评论
]]>
1.1 敏捷的Rails(一)http://www.aygfsteel.com/zidoing/archive/2006/04/10/40235.htmlzidoingzidoingMon, 10 Apr 2006 06:20:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/04/10/40235.htmlhttp://www.aygfsteel.com/zidoing/comments/40235.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/04/10/40235.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/40235.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/40235.html
q本书的标题是《Agile Web Development with Rails》,你可能很奇怪,你发现我们ƈ没有清晰地应用敏L实践X,Y和Z在进行Rails~码?
  阅读全文

zidoing 2006-04-10 14:20 发表评论
]]>
Ruby On Rails介绍(?http://www.aygfsteel.com/zidoing/archive/2006/04/09/40107.htmlzidoingzidoingSun, 09 Apr 2006 08:35:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/04/09/40107.htmlhttp://www.aygfsteel.com/zidoing/comments/40107.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/04/09/40107.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/40107.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/40107.html阅读全文

zidoing 2006-04-09 16:35 发表评论
]]>
Ruby on Rails介绍(一)http://www.aygfsteel.com/zidoing/archive/2006/04/09/40049.htmlzidoingzidoingSat, 08 Apr 2006 18:23:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/04/09/40049.htmlhttp://www.aygfsteel.com/zidoing/comments/40049.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/04/09/40049.html#Feedback1http://www.aygfsteel.com/zidoing/comments/commentRss/40049.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/40049.html阅读全文

zidoing 2006-04-09 02:23 发表评论
]]>
对Ruby中block的理解?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/04/06/39500.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Wed, 05 Apr 2006 17:05:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/04/06/39500.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/39500.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/04/06/39500.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/39500.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/39500.html</trackback:ping><description><![CDATA[     摘要: ruby中的block是比较难理解的一个概念,但是如果你懂得了什么是回调函数。那么其实block的作用和回调函数是一L?nbsp; <a href='http://www.aygfsteel.com/zidoing/archive/2006/04/06/39500.html'>阅读全文</a><img src ="http://www.aygfsteel.com/zidoing/aggbug/39500.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-04-06 01:05 <a href="http://www.aygfsteel.com/zidoing/archive/2006/04/06/39500.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ruby函数参数Q二Q?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/04/05/39443.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Wed, 05 Apr 2006 09:55:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/04/05/39443.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/39443.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/04/05/39443.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/39443.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/39443.html</trackback:ping><description><![CDATA[ <p>上次说到了方法参数前?的用法,q次我们说说前面?amp;的用法?br />对这个符L理解Q首先要理解ruby中关于block的概c?br />例子Q?/p> <p>class Person<br />   def initialize(&action)<br />      @action = action<br />   end</p> <p>   def say<br />      @action.call<br />   end</p> <p>   def say2<br />     @action.call<br />   end<br />end</p> <p>p = Person.new{puts("hello world")}<br />p.say  ---------hello world<br />p.say2 ---------hello world</p> <p>在调用say和say2的时候,它们中的@action.call执行了block中的代码也就是puts("hello world")?/p> <p>可以q么理解Qyield提供的是ҎU别上执行block中的代码的能力,?amp;却可以提?br />cM各个Ҏ执行相同block代码的能力。也是上面例子中sayQsay2都执行了puts("hello world"Q?/p> <img src ="http://www.aygfsteel.com/zidoing/aggbug/39443.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-04-05 17:55 <a href="http://www.aygfsteel.com/zidoing/archive/2006/04/05/39443.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ruby函数参数Q一Q?/title><link>http://www.aygfsteel.com/zidoing/archive/2006/04/05/39326.html</link><dc:creator>zidoing</dc:creator><author>zidoing</author><pubDate>Wed, 05 Apr 2006 03:38:00 GMT</pubDate><guid>http://www.aygfsteel.com/zidoing/archive/2006/04/05/39326.html</guid><wfw:comment>http://www.aygfsteel.com/zidoing/comments/39326.html</wfw:comment><comments>http://www.aygfsteel.com/zidoing/archive/2006/04/05/39326.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zidoing/comments/commentRss/39326.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zidoing/services/trackbacks/39326.html</trackback:ping><description><![CDATA[ <p>我们l常能看到ruby函数的参数前面有?P<br /> def my_open(*args)<br /> end<br />q是什么意思呢Q?br />其实也很单,它的意思是接收L个参敎ͼq把q些参数l装成一?br />名称为args数组?/p> <p> def my_open(*args)<br />  puts(args.length)<br /> end<br /> <br /> my_open("test.rb","w") <br />    <br />    我们可以看到输出的结果是2Q这说明了args是一个带有两个元素的</p> <img src ="http://www.aygfsteel.com/zidoing/aggbug/39326.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zidoing/" target="_blank">zidoing</a> 2006-04-05 11:38 <a href="http://www.aygfsteel.com/zidoing/archive/2006/04/05/39326.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Active Record(? http://www.aygfsteel.com/zidoing/archive/2006/03/31/38527.htmlzidoingzidoingFri, 31 Mar 2006 10:35:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/03/31/38527.htmlhttp://www.aygfsteel.com/zidoing/comments/38527.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/03/31/38527.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/38527.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/38527.html使用active record做CRUD直是太简单了?/p>

我们假设数据库中的表为:
CREATE TABLE `users` (`id` int(10) unsigned NOT NULL auto_increment,
       `login` varchar(100) NOT NULL,
                     `password` varchar(100) NOT NULL,
       `email` varchar(100) NOT NULL,
                     `name` varchar(100) NOT NULL,
        PRIMARY KEY  (`id`))
cMؓQ?br />class User<< ActiveRecord::Base
end

我们先看看如何往数据增加一个用P代码如下Q?br />user = User.new
user.login = "zidoing"
user.password="123456"
user.email = "chh915@gmail.com"
user.name = "chh"
user.save
q就可以了,是不是很单啊?/p>

如果你不惛_立一个新的局部变量你q可以用这U方式来新增一个用戗?br />User.new do |user|
   user.login = "zidoing"
   user.password="123456"
   user.email = "chh915@gmail.com"
   user.name = "chh"
   user.save
end

User的构造函数还可以接收hashQ这对web开发非常的方便?br />user = User.new(:login=>"zidoing",:password=>"123456",:email=>"chh915@gmail.com",:name=>"chh")
user.save

增加一条记录需要两个步?
1.是new一个实体赋倹{?br />2.调用saveq行保存?br />但是active record也提供一个create函数同时完成了这两步的操作?br />user = User.create(:login=>"zidoing",:password="123456",:email=>"chh915@gmail.com",:name="chh")
它也可以接收array作ؓ参数?br />users = User.create([{:login=>"zidoing",:password="123456",:email=>"chh915@gmail.com",:name="chh"},{
  :login=>"zidoing1",:password="1234567",:email=>"chh915@hotmail.com",:name="chh1"}])

 

 

 

 



zidoing 2006-03-31 18:35 发表评论
]]>
在dreamhost上安装rorE序http://www.aygfsteel.com/zidoing/archive/2006/03/30/38353.htmlzidoingzidoingThu, 30 Mar 2006 12:41:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/03/30/38353.htmlhttp://www.aygfsteel.com/zidoing/comments/38353.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/03/30/38353.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/38353.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/38353.html自己是在本机上开发的rorE序Q服务器使用的是webrick。在装到dreamhost上真是经历了一D艰辛的历程?在这Ҏ一些安装过E写出来希望对大家有用?/p>


1,上传所有的文gC的服务器目录?(定也上?public/.htaccess 文g )
2,因ؓ要用的是fastcgiQ所以把public的dispatch.cgi改名为_dispatch.cgiQ避免冲H?br />3,修改public目录下的dispatch.fcgi和dispatch.rbQ把首行改ؓ#!/usr/bin/ruby
4,修改public目录下的.htaccessQ把RewriteRule ^(.*)$ dispatch.cgi [QSA,L]改ؓRewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
5Q配|数据库Q这边要注意的是host配置为域名而不能是id地址?br />6,?yourdomain.com/public, public/dispatch.fcgi ?public/dispatch.rb的权限改?755
7,更改目录 /yourdomain.com/log 的权限ؓ 0666


最后要谢谢bd7lx、caiwangqin、apemanchen,没他们的帮助我是不可能安装成功的?br />



zidoing 2006-03-30 20:41 发表评论
]]>
Rails 1.1之ActiveRecord新特http://www.aygfsteel.com/zidoing/archive/2006/03/30/38252.htmlzidoingzidoingThu, 30 Mar 2006 06:18:00 GMThttp://www.aygfsteel.com/zidoing/archive/2006/03/30/38252.htmlhttp://www.aygfsteel.com/zidoing/comments/38252.htmlhttp://www.aygfsteel.com/zidoing/archive/2006/03/30/38252.html#Feedback0http://www.aygfsteel.com/zidoing/comments/commentRss/38252.htmlhttp://www.aygfsteel.com/zidoing/services/trackbacks/38252.htmlhttp://blogsite.3322.org/jspwiki/?bookmarkablePage=home

zidoing 2006-03-30 14:18 发表评论
]]>
վ֩ģ壺 | | | ̩| | | | | ˷| Ȫ| Դ| Դ| ٺ| ϴ| | | | | | ɽ| | | | | ʷ| | | Ű| ƽ| ½| | | | | ũ| ף| ˮ| | | ٳ| ѽ|