<?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: 老熊</title>
		<link>http://chinaonrails.com/u/%E8%80%81%E7%86%8A</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>CGI::Session::CookieStore::CookieOverflow ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/2177.html</link>
			<comments>http://chinaonrails.com/topic/view/2177.html#reply</comments>
			<dc:creator>老熊</dc:creator>
			<author>老熊</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/530.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_n.jpg" type="image/jpeg" />-->
			<category>Rails</category>
			<description>
			rails 2.1 开始默认使用cookie 保存session，这样的好处是避免了原来方式性能上的弊病，但带来的坏处就是，rails中flash也是基于session，原来可以将&amp;lt;textarea&amp;gt;内容保存在flash中，但因为cookies大小有4k的限制，如果超过4k，rails就会抛 CGI::Session::CookieStore::CookieOverflow 。&lt;br /&gt;
&lt;br /&gt;
另外，浏览器对于同一网址的cookies数量也有限制，应该是不超过60个，在大表单时候，可能也会触发异常。
			</description>
			<pubDate>Tue, 16 Sep 2008 21:40:37 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/2177.html</guid>
		</item>
		<item>
			<title>rails 异常处理 ... no reply</title>
			<link>http://chinaonrails.com/topic/view/1977.html</link>
			<comments>http://chinaonrails.com/topic/view/1977.html#reply</comments>
			<dc:creator>老熊</dc:creator>
			<author>老熊</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/530.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_n.jpg" type="image/jpeg" />-->
			<category>Rails</category>
			<description>
			原来异常处理都是比较简单的&lt;br /&gt;
begin&lt;br /&gt;
  ....&lt;br /&gt;
rescue Exception =&amp;gt; exc&lt;br /&gt;
  logger.error("#{exc.message}")&lt;br /&gt;
  redirect_to "/500.html"&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
但发现如果在 activerecode中的错误，那么可以处理得到，但如果是action_controller的错误，如DoubleRender、noaction等无法，则需要改成&lt;br /&gt;
begin&lt;br /&gt;
  raise&lt;br /&gt;
  ....&lt;br /&gt;
rescue Exception =&amp;gt; exc&lt;br /&gt;
  logger.error("#{exc.message}")&lt;br /&gt;
  redirect_to "/500.html"&lt;br /&gt;
end&lt;br /&gt;
才能处理到，不知道大家如何处理的，有什么好办法没有
			</description>
			<pubDate>Mon, 04 Aug 2008 17:59:47 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1977.html</guid>
		</item>
		<item>
			<title>大家都使用什么工具进行功能测试呢？ ... 1 reply</title>
			<link>http://chinaonrails.com/topic/view/1820.html</link>
			<comments>http://chinaonrails.com/topic/view/1820.html#reply</comments>
			<dc:creator>老熊</dc:creator>
			<author>老熊</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/530.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_n.jpg" type="image/jpeg" />-->
			<category>Testing</category>
			<description>
			打算挑个功能测试工具，仔细研究一下，现在就发现了Selenium，其他还有什么可以推荐的吗？&lt;br /&gt;
&lt;br /&gt;
要free的~~~
			</description>
			<pubDate>Wed, 02 Jul 2008 14:15:46 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1820.html</guid>
		</item>
		<item>
			<title>为何respnse.header里面没有X-Runtime 信息？ ... 7 replies</title>
			<link>http://chinaonrails.com/topic/view/1749.html</link>
			<comments>http://chinaonrails.com/topic/view/1749.html#reply</comments>
			<dc:creator>老熊</dc:creator>
			<author>老熊</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/530.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_n.jpg" type="image/jpeg" />-->
			<category>Rails</category>
			<description>
			环境 rails 1.2.6 mongrel&lt;br /&gt;
&lt;br /&gt;
curl -I http://localhost:4000/&lt;br /&gt;
&lt;br /&gt;
HTTP/1.1 200 OK&lt;br /&gt;
Connection: close&lt;br /&gt;
Date: Thu, 19 Jun 2008 11:45:19 GMT&lt;br /&gt;
Set-Cookie: _co56_web_session_id=03f700ecf695409509e67d7a491ed35f; path=/&lt;br /&gt;
Status: 200 OK&lt;br /&gt;
X-Runtime: 10&lt;br /&gt;
Cache-Control: no-cache&lt;br /&gt;
Server: Mongrel 1.1.4&lt;br /&gt;
Content-Type: text/html; charset=utf-8&lt;br /&gt;
Content-Length: 18292&lt;br /&gt;
&lt;br /&gt;
没有X-Runtime 信息，需要服务器设置？还是要在ApplicationControllor 添加代码？
			</description>
			<pubDate>Thu, 19 Jun 2008 19:43:32 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1749.html</guid>
		</item>
		<item>
			<title>rails不支持mysql bigint? ... 2 replies</title>
			<link>http://chinaonrails.com/topic/view/1288.html</link>
			<comments>http://chinaonrails.com/topic/view/1288.html#reply</comments>
			<dc:creator>老熊</dc:creator>
			<author>老熊</author>
			<!--<enclosure url="http://chinaonrails.com/img/p/530.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_s.jpg" type="image/jpeg" />
			<enclosure url="http://chinaonrails.com/img/p/530_n.jpg" type="image/jpeg" />-->
			<category>Ask</category>
			<description>
			rails 1.2.6   mysql 5&lt;br /&gt;
&lt;br /&gt;
table:infos&lt;br /&gt;
fields:id ,bigint(20), AUTO_INCREMENT =90000000013&lt;br /&gt;
        name,varchar(255) &lt;br /&gt;
&lt;br /&gt;
info_controller.rb 代码：&lt;br /&gt;
def add&lt;br /&gt;
      @info = Info.new&lt;br /&gt;
      @info.name = "test"&lt;br /&gt;
      @info.save!&lt;br /&gt;
      puts "id:",@info.id.to_s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
运行，puts为：&lt;br /&gt;
id:-194313203&lt;br /&gt;
&lt;br /&gt;
貌似rails只认识int类型，不支持bigint？谢～～～
			</description>
			<pubDate>Sat, 02 Feb 2008 11:39:33 +0800</pubDate>
			<guid>http://chinaonrails.com/topic/view/1288.html</guid>
		</item>
	</channel>
</rss>