<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>76521 (天堂!ove重現)</title>
    <link>https://ruby-china.org/76521</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>RubyGems 镜像</title>
      <description>&lt;p&gt;昨天开始&lt;a href="https://gems.ruby-china.com" rel="nofollow" target="_blank"&gt;https://gems.ruby-china.com&lt;/a&gt;服务不是很稳定了&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Wed, 15 Apr 2020 11:42:55 +0800</pubDate>
      <link>https://ruby-china.org/topics/39746</link>
      <guid>https://ruby-china.org/topics/39746</guid>
    </item>
    <item>
      <title>Rails 定时任务启动错误</title>
      <description>&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;rails运行环境是正常的&lt;/span&gt;&lt;span class="err"&gt;，&lt;/span&gt;&lt;span class="n"&gt;但是启动定时任务时候报错&lt;/span&gt;&lt;span class="err"&gt;，&lt;/span&gt;&lt;span class="n"&gt;定时任务我用的whenever&lt;/span&gt;&lt;span class="err"&gt;，&lt;/span&gt;&lt;span class="n"&gt;我已经指定了ruby&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="vi"&gt;@rails444这个包了&lt;/span&gt; &lt;span class="err"&gt;，&lt;/span&gt;&lt;span class="n"&gt;为什么还会提示我检查这个包下的错误&lt;/span&gt;&lt;span class="err"&gt;？&lt;/span&gt;&lt;span class="no"&gt;Checked&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="s1"&gt;'GEM_PATH=/home/vivo/.rvm/gems/ruby-1.9.3-p547:/home/vivo/.rvm/gems/ruby-1.9.3-p547@global'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt; &lt;span class="sb"&gt;`gem env`&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;more&lt;/span&gt; &lt;span class="n"&gt;information&lt;/span&gt;

&lt;span class="n"&gt;这是我的定时任务&lt;/span&gt;&lt;span class="err"&gt;：&lt;/span&gt;
&lt;span class="n"&gt;job_type&lt;/span&gt; &lt;span class="ss"&gt;:rake&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"cd :path;PATH=&lt;/span&gt;&lt;span class="si"&gt;#{&lt;/span&gt;&lt;span class="no"&gt;ENV&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'PATH'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; &amp;amp;&amp;amp; :environment_variable=:environment bundle exec rake :task RAILS_ENV=development --silent :output "&lt;/span&gt;

&lt;span class="n"&gt;set&lt;/span&gt; &lt;span class="ss"&gt;:output&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;File&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expand_path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"log/cron.log"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;every&lt;/span&gt; &lt;span class="ss"&gt;:day&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;:at&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="s1"&gt;'4:00am'&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="n"&gt;rake&lt;/span&gt; &lt;span class="s1"&gt;'elasticsearch:import'&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="n"&gt;log报错信息&lt;/span&gt;&lt;span class="err"&gt;：&lt;/span&gt;
&lt;span class="no"&gt;Ignoring&lt;/span&gt; &lt;span class="n"&gt;gem&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;wrappers&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;1.2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt; &lt;span class="n"&gt;because&lt;/span&gt; &lt;span class="n"&gt;its&lt;/span&gt; &lt;span class="n"&gt;extensions&lt;/span&gt; &lt;span class="n"&gt;are&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;built&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;  &lt;span class="no"&gt;Try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;gem&lt;/span&gt; &lt;span class="n"&gt;pristine&lt;/span&gt; &lt;span class="n"&gt;gem&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;wrappers&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt; &lt;span class="mf"&gt;1.2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;
&lt;span class="sr"&gt;/home/&lt;/span&gt;&lt;span class="n"&gt;vivo&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rvm&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;rubies&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ruby&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;lib&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ruby&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;site_ruby&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;2.2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;rubygems&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dependency&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rb&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;315&lt;/span&gt;&lt;span class="ss"&gt;:in&lt;/span&gt; &lt;span class="sb"&gt;`to_specs': Could not find 'bundler' (&amp;gt;= 0) among 15 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/vivo/.rvm/gems/ruby-1.9.3-p547:/home/vivo/.rvm/gems/ruby-1.9.3-p547@global', execute `&lt;/span&gt;&lt;span class="n"&gt;gem&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="sb"&gt;` for more information
    from /home/vivo/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:324:in `&lt;/span&gt;&lt;span class="n"&gt;to_spec&lt;/span&gt;&lt;span class="s1"&gt;'
    from /home/vivo/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'&lt;/span&gt;
    &lt;span class="n"&gt;from&lt;/span&gt; &lt;span class="sr"&gt;/home/&lt;/span&gt;&lt;span class="n"&gt;vivo&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rvm&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gems&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ruby&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2.2&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="vi"&gt;@rails444&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bundle&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="ss"&gt;:in&lt;/span&gt; &lt;span class="sb"&gt;`&amp;lt;main&amp;gt;'
    from /home/vivo/.rvm/gems/ruby-2.2.2@rails444/bin/ruby_executable_hooks:15:in `&lt;/span&gt;&lt;span class="nb"&gt;eval&lt;/span&gt;&lt;span class="s1"&gt;'
    from /home/vivo/.rvm/gems/ruby-2.2.2@rails444/bin/ruby_executable_hooks:15:in `&amp;lt;main&amp;gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>76521</author>
      <pubDate>Tue, 22 Dec 2015 10:42:46 +0800</pubDate>
      <link>https://ruby-china.org/topics/28483</link>
      <guid>https://ruby-china.org/topics/28483</guid>
    </item>
    <item>
      <title>model_name is defined by ActiveRecord</title>
      <description>&lt;p&gt;数据中有个字段用了这个 model_name，然后报错 model_name is defined by Active Record，怎么解决啊，不能修改数据中的 model_name 字段&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Tue, 20 Oct 2015 17:34:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/27756</link>
      <guid>https://ruby-china.org/topics/27756</guid>
    </item>
    <item>
      <title>mysql2 链接数据库经常连接失败</title>
      <description>&lt;p&gt;我的 database.yam 配置文件&lt;/p&gt;

&lt;p&gt;adapter: mysql2
  encoding: utf8
  database: scrmdb
  host: localhost
  pool: 50
  username: root
  password: huntor_2015
  wait_timeout: 20000
  reconnect: true
  timeout: 5000&lt;/p&gt;

&lt;p&gt;我是多个应用用同一个数据库。数据库是能连上的，只是不稳定好像，有时候链接失败了，再刷新下就又好了，mysql 日志频报连接无效。
请问有什么解决办法么&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Tue, 27 Jan 2015 17:12:33 +0800</pubDate>
      <link>https://ruby-china.org/topics/23970</link>
      <guid>https://ruby-china.org/topics/23970</guid>
    </item>
    <item>
      <title>rails，弹出另存为对话框或者下载对话框</title>
      <description>&lt;p&gt;我想做一个报表导出 excel 功能，可以选择文件保存的位置。用 window.open 弹出一个对话框 不知道那个 path 路径该怎么写，&lt;/p&gt;


    function openWindow(path){
          window.open(path ,'_blank','width=1,height=1,toolbar=no,menubar=no,location=no');
    }


&lt;p&gt;，请问还有什么好的方法么？&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Mon, 10 Nov 2014 17:15:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/22589</link>
      <guid>https://ruby-china.org/topics/22589</guid>
    </item>
    <item>
      <title>rails 随机生成字母跟数字的组合，比如 4 位、6 位、7 位等等</title>
      <description>&lt;p&gt;我想随机生成字母跟数字的组合，每一位可以数字也可以是字母随机的，比如生成 4 位的，第一位可以是数字也可以是字母，第二位可以是数字也可以是字母，依次类推。比如还可以生成 5 位、6 位、7 位等等。&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Thu, 06 Nov 2014 17:12:07 +0800</pubDate>
      <link>https://ruby-china.org/topics/22533</link>
      <guid>https://ruby-china.org/topics/22533</guid>
    </item>
    <item>
      <title>Rails 如何导入 Excel 表中的数据到数据库？</title>
      <description>&lt;p&gt;我想导入一个 excel 表中的数据，有什么 gem 或者插件或者什么方法支持导入 excel 表中的数据么？
我用了 kindeditor 中的 insertfile，先把文件上传上去，然后再提交一个表单导入 excel 表中的数据到数据库中的，感觉这个方法不打好。求个解决方法&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Thu, 06 Nov 2014 09:56:55 +0800</pubDate>
      <link>https://ruby-china.org/topics/22518</link>
      <guid>https://ruby-china.org/topics/22518</guid>
    </item>
    <item>
      <title>migrate 里面注释，参数 comment，执行 rake db:migrate，把字段的注释也生成到 mysql 中</title>
      <description>&lt;h2 id="圈子 ---list"&gt;圈子 ---list&lt;/h2&gt;
&lt;p&gt;class CreateLists &amp;lt; ActiveRecord::Migration
  def change
    create_table :lists, :options =&amp;gt; 'DEFAULT CHARSET=utf8' do |t|
      t.integer :micro_letter_id, :integer, :comment =&amp;gt; "微信" # 微信&lt;/p&gt;

&lt;p&gt;t.timestamps
    end&lt;/p&gt;

&lt;p&gt;#add_index :lists, [:publish_status, :assigned_user, :team_id, :company_id], name: "user_company_status_index"
  end
end&lt;/p&gt;

&lt;p&gt;执行 rake db:migrate，把字段的注释也生成到 mysql 中，这样加了 :comment =&amp;gt; "微信"这个参数不管用，请问该怎么做&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Wed, 20 Aug 2014 09:44:12 +0800</pubDate>
      <link>https://ruby-china.org/topics/21129</link>
      <guid>https://ruby-china.org/topics/21129</guid>
    </item>
    <item>
      <title>rails Model self.table_name 问题</title>
      <description>&lt;p&gt;class Account &amp;lt; ActiveRecord::Base
     self.table_name = "socials" 
end
我有一个 account 类，然后引用了 socials 表，数据库中已经把 accounts 表删除了，查询、更新、删除的时候是正常的，但是创建的时候报错 ActiveRecord::StatementInvalid: Mysql2::Error: Table 'pscrmdata.accounts' doesn't exist: INSERT INTO &lt;code&gt;socials&lt;/code&gt; (`&lt;code&gt;account_name&lt;/code&gt;) VALUES ( '新浪微博')。&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Tue, 24 Jun 2014 15:23:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/20137</link>
      <guid>https://ruby-china.org/topics/20137</guid>
    </item>
    <item>
      <title>session_store dalli 各个参数求解释</title>
      <description>&lt;p&gt;1, Rails.application.config.session_store :dalli_store, :memcache_server =&amp;gt; ['host1', 'host2'], :namespace =&amp;gt; 'sessions', :key =&amp;gt; '_foundation_session', :expire_after =&amp;gt; 20.minutes,:threadsafe =&amp;gt; true, :failover =&amp;gt; true
这些参数没大看明白谁能帮解释下啊和这些参数的作用 namespace、key、expire_after、threadsafe、failover、compression、async，还有这个参数 memcache_server 里面我看有这么写的'localhost:11211:10'&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Thu, 03 Apr 2014 09:38:06 +0800</pubDate>
      <link>https://ruby-china.org/topics/18356</link>
      <guid>https://ruby-china.org/topics/18356</guid>
    </item>
    <item>
      <title>git 只忽略本地的文件应该怎么办</title>
      <description>&lt;p&gt;假设我本地有 Gemfile 文件，我本地的 Gemfile 文件跟线上的 Gemfile 文件有区别，git 提交的时候我不想把我本地的 Gemfile 提交到线上，只忽略我自己本地机器的这个文件，比人的不管。
也就是 我们经常有这样一种情况。
有个文件，我们必须入库，大家一起共享，但是呢。每个人本地的配置又是因自己本地的环境而异。这样的话，这个文件就很崩溃了。你要入库，通过.gitignore 和 excludes 都不起作用。每次 git status 都会提示你修改，你又好上传。
git update-index --assume-unchanged FILENAME  执行这个命令了虽然 git status 之后不再提示修改了，但是你切换到别的分支的时候，他又会提示那个文件有问题，让你提交或者 stash。
该怎么解决啊，求高手指点&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Tue, 25 Feb 2014 17:05:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/17482</link>
      <guid>https://ruby-china.org/topics/17482</guid>
    </item>
    <item>
      <title>Rails 页面响应问题</title>
      <description>&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/eac1133920f126bcdf90568908f7b276.jpg" title="" alt=""&gt;
应该是弹出 HTML 页面的内容，怎么直接在响应里面了啊？都不弹出 HTML 页面了，求高手解答&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Wed, 24 Jul 2013 16:17:13 +0800</pubDate>
      <link>https://ruby-china.org/topics/12741</link>
      <guid>https://ruby-china.org/topics/12741</guid>
    </item>
    <item>
      <title>rails 报错 406</title>
      <description>&lt;p&gt;"NetworkError: 406 Not Acceptable - &lt;a href="http://localhost:3000/contacts/new?cancel=false" rel="nofollow" target="_blank"&gt;http://localhost:3000/contacts/new?cancel=false&lt;/a&gt;"
rails 报这个错误时怎么回事啊，也没改过添加 new 中的任何东西
但是如果一些 js 加载失败的时候，添加就好用了，&lt;img src="//l.ruby-china.com/photo/b8930d01b36fc9198e2af7d6dcbaea0e.jpg" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Mon, 22 Jul 2013 16:15:27 +0800</pubDate>
      <link>https://ruby-china.org/topics/12676</link>
      <guid>https://ruby-china.org/topics/12676</guid>
    </item>
    <item>
      <title>rails 时间控件问题</title>
      <description>&lt;p&gt;我已经把这个文件 WdatePicker.js 放到 assets 目录下了，但是我在页面上这样写&lt;img src="//l.ruby-china.com/photo/274d969ea0849af635909b7c66fae724.jpg" title="" alt=""&gt;
&lt;img src="//l.ruby-china.com/photo/5f3f2258c8945c78eff9e21e057bd097.jpg" title="" alt=""&gt;
什么提示我 ReferenceError: WdatePicker is not defined，谁帮看一下啊？&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Tue, 16 Jul 2013 17:16:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/12544</link>
      <guid>https://ruby-china.org/topics/12544</guid>
    </item>
    <item>
      <title>rails 数据库表多对多关系取数据问题</title>
      <description>&lt;p&gt;我有表 contacts，tags，对应关系是多对多，我按照约定，中间表为 contacts_tag，我在 model 中已经建好了关系&lt;img src="//l.ruby-china.com/photo/dcd2d677959caa42d86268498089ff44.jpg" title="" alt=""&gt;
as_and_belongs_to_many：contacts/has_and_belongs_to_many：tags 但是我在 contact 的 view 中怎么取不到 tag 的数据，&lt;img src="//l.ruby-china.com/photo/f72ea5cbdee35f132b6c3ffe54dd9f20.jpg" title="" alt=""&gt;
=contact.tags.name 在页面上显示的数据是这个 ActsAsTaggableOn::Tag，怎么回事啊这是&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Wed, 10 Jul 2013 15:37:22 +0800</pubDate>
      <link>https://ruby-china.org/topics/12397</link>
      <guid>https://ruby-china.org/topics/12397</guid>
    </item>
    <item>
      <title>rails hook ()</title>
      <description>&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/057128e364fb6b1d57395c8abecdc65c.jpg" title="" alt=""&gt;
 hook(:lead_top_section, self, :f =&amp;gt; f) do，这地方是表示的是什么意思啊？&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Tue, 09 Jul 2013 11:37:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/12370</link>
      <guid>https://ruby-china.org/topics/12370</guid>
    </item>
    <item>
      <title>rails 导出 excel 插件问题</title>
      <description>&lt;p&gt;require "spreadsheet"
  def download
    Spreadsheet.client_encoding = "UTF-8"
    bookString = StringIO.new
    book = Spreadsheet.open "#{Rails.root}/public/report_template/warehouseListReport.xls"
    contacts = Contact.all
    sheet1 = book.worksheet 0
    timer = 1&lt;br&gt;
    sheet1[0,6] = ' '&lt;br&gt;
    for contact in contacts
      sheet1[timer,0] = contact.id
      sheet1[timer,1] = contact.first_name
      sheet1[timer,2] = contact.last_name
      sheet1[timer,3] = contact.email
      sheet1[timer,4] = contact.title
      sheet1[timer,5] = contact.department
    end
          sheet1.each do |row|
        #    logger.error row[1].to_s
      end
    book.write bookString
    send_data bookString.string,:filename =&amp;gt; '123.xls'
  end
为什么导出到 123.xls 表中的数据只有 contacts 表中的最后一条数据啊？，我哪个地方的循环写错了？求指点&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Fri, 05 Jul 2013 11:53:38 +0800</pubDate>
      <link>https://ruby-china.org/topics/12267</link>
      <guid>https://ruby-china.org/topics/12267</guid>
    </item>
    <item>
      <title>rails 中 js 问题</title>
      <description>&lt;p&gt;怎么样把&lt;img src="//l.ruby-china.com/photo/eb6e160893829abd602d909c3bbca1fc.jpg" title="" alt=""&gt;
段 JS 加入到这个这个辅助方法&lt;img src="//l.ruby-china.com/photo/f9ca84d52665db51cc0183763e51c581.jpg" title="" alt=""&gt;
link_to_inline 中啊，js 那个参数 path 就是 download_contacts_path&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Mon, 01 Jul 2013 09:28:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/12130</link>
      <guid>https://ruby-china.org/topics/12130</guid>
    </item>
    <item>
      <title>路径问题</title>
      <description>&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/41330805bcff676fb5b26fdbeb8fd557.jpg" title="" alt=""&gt;
这个 RAILS_ROOT 在 rails3.0 中识别不了了，应该怎么表示啊，直接“/public/report_template/warehouseListReport.xls"这样表示也提示路径不对&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Thu, 27 Jun 2013 10:58:39 +0800</pubDate>
      <link>https://ruby-china.org/topics/12032</link>
      <guid>https://ruby-china.org/topics/12032</guid>
    </item>
    <item>
      <title>helper 方法带参数问题</title>
      <description>&lt;p&gt;&lt;img src="//l.ruby-china.com/photo/eddc1c04bc5076fe6ee67c3c4bee1974.jpg" title="" alt=""&gt;
这个辅助方法中我想把 js 中的那个 con_id 这个参数传到这个辅助方法中 contact_tags_admin_tags_path 该怎么传啊&lt;/p&gt;</description>
      <author>76521</author>
      <pubDate>Mon, 24 Jun 2013 10:29:38 +0800</pubDate>
      <link>https://ruby-china.org/topics/11937</link>
      <guid>https://ruby-china.org/topics/11937</guid>
    </item>
  </channel>
</rss>
