<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>zafu10 (王志)</title>
    <link>https://ruby-china.org/zafu10</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>求助 rufus-scheduler 的使用</title>
      <description>&lt;p&gt;现在是在 windows 机器上开发，马上要发布到 heroku 上，现在需要在后台添加一个每天执行的任务，可是我在装了 rufus-scheduler 之后，把 task.rb 也加上了，后面就启动不起来出错了，求助啊？
 rails s&lt;br&gt;
=&amp;gt; Booting WEBrick
=&amp;gt; Rails 3.2.1 application starting in development on &lt;a href="http://0.0.0.0:3000" rel="nofollow" target="_blank"&gt;http://0.0.0.0:3000&lt;/a&gt;
=&amp;gt; Call with -d to detach
=&amp;gt; Ctrl-C to shutdown server
Exiting
d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in &lt;code&gt;require':
cannot load such file -- rufus/scheduler (LoadError)
        from d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:i
n&lt;/code&gt;block in require'
        from d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:i
n &lt;code&gt;load_dependency'
        from d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:i
n&lt;/code&gt;require'
        from d:/work/ruby/ruby_work/nwmi1/config/initializers/task.rb:2:in `'  &lt;/p&gt;</description>
      <author>zafu10</author>
      <pubDate>Thu, 12 Jul 2012 11:48:06 +0800</pubDate>
      <link>https://ruby-china.org/topics/4265</link>
      <guid>https://ruby-china.org/topics/4265</guid>
    </item>
    <item>
      <title>rails 使用 open_flash_chart 出错的问题</title>
      <description>&lt;p&gt;使用的 rails 是 3.2.2 的版本，我按照&lt;a href="http://pullmonkey.com/projects/open_flash_chart2" rel="nofollow" target="_blank"&gt;http://pullmonkey.com/projects/open_flash_chart2&lt;/a&gt;  上的 example 来做，到后面就是不行一直是：
Open Flash Chart
IO ERROR
Loading test data
Error #2032
This is the URL that I tried to open:/graphs/get_graph
浏览器缓存我也清了，用了各种能用到了浏览器也都试了，就是无法显示 chart，有同学用过 open_flash_chart 吗？&lt;img src="//l.ruby-china.com/photo/f191099ab8ea6d6622bb54833a5ecf7a.jpg" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>zafu10</author>
      <pubDate>Wed, 23 May 2012 14:29:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/3451</link>
      <guid>https://ruby-china.org/topics/3451</guid>
    </item>
    <item>
      <title>如何把 select 选择的值通过 button_to 传输给另外的一个 controller 中的 action?</title>
      <description>&lt;p&gt;&amp;lt;%= form_tag line_items_path(:product_id =&amp;gt; product.id) do %&amp;gt;
  &amp;lt;%= label(:ammount, "Ammount:") %&amp;gt;
  &amp;lt;%= select_tag(:ammount, options_for_select([1,2,3,4,5,6,7,8,9,10])) %&amp;gt;
  &amp;lt;%= submit_tag 'Add to cart' %&amp;gt;
&amp;lt;% end %&amp;gt;&lt;/p&gt;

&lt;p&gt;希望实现上面代码类似的功能，但是我想要传输的是 ammout 的值给另一个 controller，类似于&lt;/p&gt;

&lt;p&gt;&amp;lt;%= button_to 'Add to cart', line_items_path( :quantity =&amp;gt; :ammount) %&amp;gt;
该如何实现呢？  &lt;/p&gt;</description>
      <author>zafu10</author>
      <pubDate>Fri, 27 Apr 2012 23:21:06 +0800</pubDate>
      <link>https://ruby-china.org/topics/2942</link>
      <guid>https://ruby-china.org/topics/2942</guid>
    </item>
    <item>
      <title>如何在数据库中存储二维数组？</title>
      <description>&lt;p&gt;希望把一组信息 data1={“aaaa”，“bbbb”，“cccc”}，把 data1 存储为一个数据类型，就像用 integer 或者 string 一样，该怎么做呢  &lt;/p&gt;</description>
      <author>zafu10</author>
      <pubDate>Wed, 18 Apr 2012 23:13:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/2699</link>
      <guid>https://ruby-china.org/topics/2699</guid>
    </item>
    <item>
      <title>关于 youtube 视频点播站点的设计</title>
      <description>&lt;p&gt;前两天发了一个帖子没有说清楚要求，现在想做一个简单的网页：
就是在网页头部有一个视频播放器，网页下面是一些可供选择的视频，视频都来自 youtube，用户登录注册之后都可以直接选择想要看的视频，看完时候之后会有一个标记已经看过这个视频，当然所有下面列表中的视频，都希望能够在网页头部固定位置的播放器中播放（或者在一个新打开页面播放），不希望一个简单的内嵌在 html 的视频播放形式，这样子整个页面太难看而且不容易维护，大家都什么好的建议吗？该如何去实现，lz 大菜鸟，在此谢谢大家了！  &lt;/p&gt;</description>
      <author>zafu10</author>
      <pubDate>Sat, 14 Apr 2012 22:24:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/2610</link>
      <guid>https://ruby-china.org/topics/2610</guid>
    </item>
    <item>
      <title>小白发问：ror 开发的网站上想要挂一个内嵌 youtube 视频的功能，如何实现？</title>
      <description>&lt;p&gt;rt，功能就是有一堆的视频地址，都是链接到 youtube 上的，但是想在当前的网站上播放，应该如何实现，用的是 ror。大家给点建议吧   &lt;/p&gt;</description>
      <author>zafu10</author>
      <pubDate>Thu, 12 Apr 2012 16:49:20 +0800</pubDate>
      <link>https://ruby-china.org/topics/2550</link>
      <guid>https://ruby-china.org/topics/2550</guid>
    </item>
    <item>
      <title>求教关于 depot 的例子</title>
      <description>&lt;p&gt;做了敏捷 web 开发的例子，菜鸟一个，现在想把书上的 depot 的例子稍微做一点改进，就是想在原来的基础上加入一个商品分类的功能，原先就是只有把所有的商品全都列出来了，现在就想把商品按照类别分类显示，应该怎么做比较方便呢，求助啊  &lt;/p&gt;</description>
      <author>zafu10</author>
      <pubDate>Wed, 21 Mar 2012 21:12:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/2040</link>
      <guid>https://ruby-china.org/topics/2040</guid>
    </item>
  </channel>
</rss>
