<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/xslt/rss2.xsl" media="screen"?>
<rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Latest from ChinaonRails: zhangzhai</title>
		<link>http://chinaonrails.com/u/zhangzhai</link>
		<description>ChinaonRails | ChinaonRails are one of the very few China based web consultancies, who specialize in application development using RubyOnRails/Agile/Ajax.</description>
		<category>Technology</category>
		<language>zh_cn</language>
		<item>
			<title>关于UJS插件和其他 ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/1564.html</link>
			<comments>http://chinaonrails.com/topic/view/1564.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Rails</category>
			<description>
			看到一个网站源代码里有个插件叫 Unobtrusive Javascript 就google了一下，发现这个网站&lt;br /&gt;
&lt;br /&gt;
http://ujs4rails.com/&lt;br /&gt;
&lt;br /&gt;
一句话介绍就是“Rails is a great framework, especially for writing AJAX applications, but the Javascript that the built-in Rails helpers output is a bone of contention for many. Unobtrusive Javascript for Rails aims to change that.”&lt;br /&gt;
&lt;br /&gt;
基本方法就是在rhtml里写方法&lt;br /&gt;
&amp;lt;% apply_behaviour 'a.external:click', 'window.open(this.href, "ext"); return false;' %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
然后放到rails2.0测试了一下，出错，到google group一看，dan大牛已经不再维护了，跳到low pro去了&lt;br /&gt;
&lt;br /&gt;
https://groups.google.com/group/ujs4rails/browse_thread/thread/bfb6895ca45faaea&lt;br /&gt;
http://www.danwebb.net/lowpro&lt;br /&gt;
&lt;br /&gt;
lowpro是什么？就是UJS插件里的主要的js库，详细的可以看这两篇&lt;br /&gt;
&lt;br /&gt;
http://jlaine.net/2007/8/3/from-rails-ajax-helpers-to-low-pro-part-i&lt;br /&gt;
&lt;br /&gt;
http://jlaine.net/2007/8/6/from-rails-ajax-helpers-to-low-pro-part-2&lt;br /&gt;
&lt;br /&gt;
完全的JS和html分离，更美观，更强壮（没有打开JS的也支持）&lt;br /&gt;
&lt;br /&gt;
基本方法是建个js文件，写：&lt;br /&gt;
&lt;br /&gt;
Event.addBehavior({&lt;br /&gt;
  '#add_form' : function() {&lt;br /&gt;
    this.hide();&lt;br /&gt;
  }&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
应该是以后的趋势吧，以前也看到说要把rails ajax helper移出来，不知道什么时候官方收录，有兴趣的可以看看。有用过的说说心得吧。
			</description>
			<pubDate>Thu, 01 May 2008 20:59:41 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1564.html</guid>
		</item>
		<item>
			<title>svn求助 ... 3 replies</title>
			<link>http://chinaonrails.com/topic/view/1464.html</link>
			<comments>http://chinaonrails.com/topic/view/1464.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			新装了系统，发现无法获取svn插件了，具体来说就是ruby script/plugin install svn://errtheblog.com/svn/plugins/will_paginate&lt;br /&gt;
&lt;br /&gt;
凡是svn协议的都没办法获取，通过浏览器web方式当然可以checkout，但总是麻烦，以前好像没遇到这个问题,谁有解决办法吗？&lt;br /&gt;
&lt;br /&gt;
乌龟svn已经安装了。
			</description>
			<pubDate>Sun, 30 Mar 2008 22:45:26 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1464.html</guid>
		</item>
		<item>
			<title>linux安装rmagick遇到问题 ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1221.html</link>
			<comments>http://chinaonrails.com/topic/view/1221.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Server</category>
			<description>
			ubuntu默认带了imagemagick,但是安装新版的rmagick2需要6.3.x,没办法,下载源码,编译安装,但是出错,显示&lt;br /&gt;
&lt;br /&gt;
&lt;div class="code"&gt;&lt;br /&gt;
convert: error while loading shared libraries:&lt;br /&gt;
 libMagick.so.10: cannot open shared object file: &lt;br /&gt;
No such file or directory&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
网上找了很多解决办法,都没用&lt;br /&gt;
&lt;br /&gt;
想回到安装前,使用rmagick1得了,试过删除新装的imagemagick,又不会删,sudo apt-get remove imagemagick没有成功,现在不知道怎么办了,有谁能提供下办法吗?或加我msn帮忙远程安装下新版的imagemagick,非常感谢~&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
已搞定,make uninstall 删除就可以了,linux还是不熟,走了很多弯路.现在暂时还是用imagemagick和rmagick和老版本了,等ubuntu apt自动更新吧,编译安装放弃了.
			</description>
			<pubDate>Sat, 19 Jan 2008 22:02:07 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1221.html</guid>
		</item>
		<item>
			<title>不用apache怎么安装svn服务端? ... 7 replies</title>
			<link>http://chinaonrails.com/topic/view/1220.html</link>
			<comments>http://chinaonrails.com/topic/view/1220.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Server</category>
			<description>
			ubuntu下,搞定了nginx+mongrel,但是subversion就搞不定了,网上都是apache+mod_svn,没有说nginx或lighttpd,不知道怎么安装?没有svn,cap或vlad也失去意义了,求助.
			</description>
			<pubDate>Sat, 19 Jan 2008 16:16:57 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1220.html</guid>
		</item>
		<item>
			<title>在heroku上面做的一个无聊项目 ... 17 replies</title>
			<link>http://chinaonrails.com/topic/view/1037.html</link>
			<comments>http://chinaonrails.com/topic/view/1037.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Rails</category>
			<description>
			shirtblog.heroku.com&lt;br /&gt;
&lt;br /&gt;
heroku前几天发邀请了,就试了下,没发现什么限制,在线编辑也挺方便的,但目前还不持远程install plugin.只好新建工程打包下下来,本地做好了再打包上传,居然一点都没问题.正好看到台湾同胞的恶搞新闻(http://beta.godstick.net/和 http://www.shitnews.cc/)就花一个晚上做了个.第一个项目完成啦!(以前做的都躺在硬盘里,都不完善..)&lt;br /&gt;
&lt;br /&gt;
缺点是速度比较慢,不能绑定域名..不过这种发布方式还蛮爽的,小改起来也很方便.&lt;br /&gt;
&lt;br /&gt;
有需要的可以留下email,邀请不需要等待.
			</description>
			<pubDate>Mon, 03 Dec 2007 23:37:38 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1037.html</guid>
		</item>
		<item>
			<title>chinaonrails的订阅能不能不要用feedburner? ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/1032.html</link>
			<comments>http://chinaonrails.com/topic/view/1032.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			不要跟说我用tor什么的,又不是黄色反动网站,有必要吗?现在订阅的几十个源就这个网站不能打开的,失望.
			</description>
			<pubDate>Mon, 03 Dec 2007 13:34:32 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1032.html</guid>
		</item>
		<item>
			<title>zt rails的恶搞危机 ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1030.html</link>
			<comments>http://chinaonrails.com/topic/view/1030.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Rails</category>
			<description>
			http://blog.xdite.net/?p=424&lt;br /&gt;
&lt;br /&gt;
还蛮有趣的,学过rails和其它语言的应该都会有体会
			</description>
			<pubDate>Sun, 02 Dec 2007 21:02:13 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1030.html</guid>
		</item>
		<item>
			<title>Rails 2.0: Preview ... 3 replies</title>
			<link>http://chinaonrails.com/topic/view/1026.html</link>
			<comments>http://chinaonrails.com/topic/view/1026.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Rails</category>
			<description>
			太帅了,很多激动人心的改进.&lt;br /&gt;
&lt;br /&gt;
对于安全的改进还不是很清楚,期待更多文章介绍和agile3了.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://weblog.rubyonrails.org/2007/9/30/rails-2-0-0-preview-release
			</description>
			<pubDate>Sat, 01 Dec 2007 11:02:59 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1026.html</guid>
		</item>
		<item>
			<title>写helper遇到问题,求助! ... 3 replies</title>
			<link>http://chinaonrails.com/topic/view/1016.html</link>
			<comments>http://chinaonrails.com/topic/view/1016.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			&lt;div class="code"&gt;&lt;br /&gt;
&amp;lt;% form_for(:story, :url =&amp;gt; stories_path) do |f| %&amp;gt;&lt;br /&gt;
&amp;lt;%= render &lt;img src="/img/icons/silk/emoticon_tongue.png" align="absmiddle" style="padding: 0px 2px 0px 2px;" border="0" /&gt;artial =&amp;gt; "form", &lt;img src="/img/icons/silk/emoticon_surprised.png" align="absmiddle" style="padding: 0px 2px 0px 2px;" border="0" /&gt;bject =&amp;gt; f %&amp;gt;&lt;br /&gt;
&amp;lt;%= submit_tag "Create" %&amp;gt;&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&lt;/div&gt;
问题描述很简单,就是这段代码需要放在helper里面,不知道怎么写?
			</description>
			<pubDate>Fri, 23 Nov 2007 04:11:42 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1016.html</guid>
		</item>
		<item>
			<title>rails的prototype问题 ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1013.html</link>
			<comments>http://chinaonrails.com/topic/view/1013.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			RJS的代码如下&lt;br /&gt;
&lt;br /&gt;
page.replace_html "star-ratings-block", &lt;img src="/img/icons/silk/emoticon_tongue.png" align="absmiddle" style="padding: 0px 2px 0px 2px;" border="0" /&gt;artial =&amp;gt; 'rating/test'&lt;br /&gt;
&lt;br /&gt;
test文件就"zzz"字符串,就这样还是不行!看了下firebug的response&lt;br /&gt;
&lt;br /&gt;
try {&lt;br /&gt;
&lt;br /&gt;
Element.update("star-ratings-block", "zzz");&lt;br /&gt;
&lt;br /&gt;
} catch (e) { alert('RJS error:\n\n' + e.toString()); alert('Element.update(\"star-ratings-block\", &lt;br /&gt;
&lt;br /&gt;
\"zzz\");'); throw e }&lt;br /&gt;
&lt;br /&gt;
这么简单的几句话居然都不行,然后把try块去掉,光有&lt;br /&gt;
Element.update("star-ratings-block", "zzz");&lt;br /&gt;
是可以的,这算哪门子问题啊?
			</description>
			<pubDate>Thu, 22 Nov 2007 03:45:09 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1013.html</guid>
		</item>
		<item>
			<title>复杂的select ... 3 replies</title>
			<link>http://chinaonrails.com/topic/view/1011.html</link>
			<comments>http://chinaonrails.com/topic/view/1011.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Newbie</category>
			<description>
			把三种select都试了一下,真是麻烦,谁记得住这么多东西啊.参数差一个就不行,开始怀念vs.net的IDE了.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%=collection_select(:team, :id, @teams, 'id', 'title', {:include_blank =&amp;gt; true}, { "onchange" =&amp;gt; remote_function(   &lt;br /&gt;
                     :with =&amp;gt; "'team_id='+value", &lt;br /&gt;
                     :update =&amp;gt; 'members',&lt;br /&gt;
                     :url =&amp;gt; { :action =&amp;gt; :select_members } ) })%&amp;gt;&lt;br /&gt;
&amp;lt;%= select_tag('team_id', options_from_collection_for_select(@teams, 'id', 'title'), { "onchange" =&amp;gt; remote_function(   &lt;br /&gt;
                     :with =&amp;gt; "'team_id='+value", &lt;br /&gt;
                     :update =&amp;gt; 'members',&lt;br /&gt;
                     :url =&amp;gt; { :action =&amp;gt; :select_members } ) })%&amp;gt;&lt;br /&gt;
&amp;lt;%= select(:team, :id, @teams.collect {|team| [ team.title, team.id ] }, {:include_blank =&amp;gt; true}, { "onchange" =&amp;gt; remote_function(   &lt;br /&gt;
                     :with =&amp;gt; "'team_id='+value", &lt;br /&gt;
                     :update =&amp;gt; 'members',&lt;br /&gt;
                     :url =&amp;gt; { :action =&amp;gt; :select_members } ) })%&amp;gt;
			</description>
			<pubDate>Wed, 21 Nov 2007 19:30:39 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1011.html</guid>
		</item>
		<item>
			<title>MVC is Dead? ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1003.html</link>
			<comments>http://chinaonrails.com/topic/view/1003.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Discover</category>
			<description>
			MVC 模式有缺点,作者提出的设想很好,进一步分离,浏览器view层控制接受动作并与model交互.&lt;br /&gt;
&lt;br /&gt;
http://www.appcelerant.com/mvc_is_dead.html&lt;br /&gt;
&lt;br /&gt;
http://www.sun.com/software/sunone/docs/arch/chapter8.pdf
			</description>
			<pubDate>Tue, 20 Nov 2007 17:00:31 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1003.html</guid>
		</item>
		<item>
			<title>帮朋友找个rails兼职人员[上海] ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/954.html</link>
			<comments>http://chinaonrails.com/topic/view/954.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Jobs</category>
			<description>
			自己手头有项目,抽不出时间,朋友有个项目需要rails开发者,功能包括文章发布,论坛等,有问题我也可以在技术上可以提供帮助(有高手最好了&lt;img src="/img/icons/silk/emoticon_happy.png" align="absmiddle" style="padding: 0px 2px 0px 2px;" border="0" /&gt;).美工已找到合适的,要求上海(不在上海的抱歉了,因为要时常沟通),有足够业余时间(项目开发周期在一个月左右),至少有一个项目开发经验的(能提供查看),有良好团队协作能力.熟悉ajax,测试设计者优先.&lt;br /&gt;
&lt;br /&gt;
联系方式:&lt;br /&gt;
msn:ayapap2008@hotmail.com&lt;br /&gt;
13918276841
			</description>
			<pubDate>Mon, 05 Nov 2007 23:27:12 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/954.html</guid>
		</item>
		<item>
			<title>问个rest链接的问题 ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/950.html</link>
			<comments>http://chinaonrails.com/topic/view/950.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			在分层rest中,&lt;br /&gt;
map.resources :stories do |story|&lt;br /&gt;
  story.resources :tracks:name_prefix =&amp;gt; nil&lt;br /&gt;
end&lt;br /&gt;
具体页面调用是story_track_path(@story,@track)&lt;br /&gt;
没有问题.&lt;br /&gt;
&lt;br /&gt;
现在希望/tracks/:id地址能跳到对应的地址(e.g. /stories/1/tracks/2)怎么实现呢?再写个map.resources :tracks似乎不行,有歧义.
			</description>
			<pubDate>Fri, 02 Nov 2007 21:15:54 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/950.html</guid>
		</item>
		<item>
			<title>发现v2ex对手机支持的非常好 ... 3 replies</title>
			<link>http://chinaonrails.com/topic/view/886.html</link>
			<comments>http://chinaonrails.com/topic/view/886.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Site</category>
			<description>
			今天终于体会到网站无障碍访问的重要性了。去参加shanghaionrails聚会，上车才发现只记了大楼的名字，几层忘记了，这时候只能抱希望上上chinaonrails查了，因为shanghaionrails这个网站还没切割，手机上去看肯定看不清楚。想不到v2ex对手机支持非常完美，估计专门设计的css,不到20秒就找到帖子中的地址了，真是很方便。
			</description>
			<pubDate>Sat, 20 Oct 2007 21:53:43 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/886.html</guid>
		</item>
		<item>
			<title>simple_format把空行去掉了,有什么办法吗 ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/798.html</link>
			<comments>http://chinaonrails.com/topic/view/798.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			用simple_format输出的text,都变成 &amp;lt;p&amp;gt;活动安排&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;123&amp;lt;/p&amp;gt; 这样了,把空行都去掉了,怎么办?用什么可以正确输出文本框呢,我不需要很多功能,按原样输出就行
			</description>
			<pubDate>Sat, 29 Sep 2007 13:02:14 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/798.html</guid>
		</item>
		<item>
			<title>关于attachment_fu插件的一些问题 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/797.html</link>
			<comments>http://chinaonrails.com/topic/view/797.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			现在网站都离不开上传图片,用了下attachment_fu,很方便,但问题也不少:&lt;br /&gt;
&lt;br /&gt;
1.文件名,不支持文件名,这样的话用户反复上传就会留下很多垃圾文件,而很多时候一条记录只对应一张图片,我的解决办法是图片的名称用记录的id做名字,这个靠修改插件的办法解决了&lt;br /&gt;
&lt;br /&gt;
2.不同的model有不同的resize需求,有的需要200x200大,有的需要48*48大,我不得不新建两张一样表(product_image和user_image)来储存图片信息,因为has_attachment的参数不同,这个有什么好办法吗?(顺便说一下,这两张表我不想要,因为我的图片名是和id绑定的,但不能去掉,否则无法保存)
			</description>
			<pubDate>Sat, 29 Sep 2007 12:59:34 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/797.html</guid>
		</item>
		<item>
			<title>51boo貌似不干了，国内还有什么好的rails主机提供商呢 ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/778.html</link>
			<comments>http://chinaonrails.com/topic/view/778.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			51boo的主页好久不更新了，google了下也有很多人说有问题，想退钱也退不了。。现在还有别的正宗的服务提供商吗
			</description>
			<pubDate>Mon, 24 Sep 2007 14:41:56 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/778.html</guid>
		</item>
		<item>
			<title>想在后台实现在线修改表结构，怎么实现呢 ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/761.html</link>
			<comments>http://chinaonrails.com/topic/view/761.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			就比如表字段的名字，属性等修改，能否给个思路？谢谢。
			</description>
			<pubDate>Mon, 17 Sep 2007 11:06:01 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/761.html</guid>
		</item>
		<item>
			<title>请问&amp;:是什么意思? ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/457.html</link>
			<comments>http://chinaonrails.com/topic/view/457.html#reply</comments>
			<dc:creator>zhangzhai</dc:creator>
			<author>zhangzhai</author>
			<!--<enclosure url="http://chinaonrails.com/img/p_1.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_s.gif" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p_1_n.gif" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			在修改acts_as_taggable_on_steroids发现的,源代码如下..&lt;br /&gt;
&lt;br /&gt;
        def tag_list&lt;br /&gt;
          if @tag_list&lt;br /&gt;
            @tag_list&lt;br /&gt;
          elsif caching_tag_list? and !send(self.class.cached_tag_list_column_name).nil?&lt;br /&gt;
            @tag_list = TagList.from(send(self.class.cached_tag_list_column_name))&lt;br /&gt;
          else&lt;br /&gt;
            @tag_list = TagList.new(tags.map(&amp;:name))&lt;br /&gt;
          end&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
谢谢
			</description>
			<pubDate>Thu, 21 Jun 2007 18:57:01 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/457.html</guid>
		</item>
	</channel>
</rss>