<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>nancy (luo)</title>
    <link>https://ruby-china.org/nancy</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>[北京] 巨丰金控 诚邀 Ruby 工程师</title>
      <description>&lt;p&gt;公司名称：北京巨丰金控科技有限公司&lt;/p&gt;

&lt;p&gt;坐标：北京西城区西单通港大厦&lt;/p&gt;

&lt;p&gt;薪酬情况：10K-20K  五险一金 法定节假日 补充医疗&lt;/p&gt;

&lt;p&gt;岗位要求：
年龄：20-45 岁，学历：本科+，工作年险：3 年+&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;熟练使用 Ruby 语言，2 年以上的 Ruby on Rails，grape 程序开发经验&lt;/li&gt;
&lt;li&gt;了解相关技术，如：PUMA WEB，CAPISTRANO，BLUEPILL，AUDITED 等&lt;/li&gt;
&lt;li&gt;Linux/Mysql/Nginx/Redis使用熟练并有较深的理解&lt;/li&gt;
&lt;li&gt;熟练使用 Git，具备优秀的团队合作能力&lt;/li&gt;
&lt;li&gt;扎实的编程功底与逻辑思维，能快速定位问题&lt;/li&gt;
&lt;li&gt;学习能力、定位问题与解决问题的能力&lt;/li&gt;
&lt;li&gt;精通以下一门前端技术可加分：vue/js&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;岗位职责：&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;按照业务要求进行 WEB、API 项目的开发、架构、设计编写，包括但不限于 CMS、微信公众号、微站等&lt;/li&gt;
&lt;li&gt;对所负责的项目进行严格的单元和综合测试，性能调优。&lt;/li&gt;
&lt;li&gt;进行软件故障的诊断、分析和调试，以保证业务正常运转。&lt;/li&gt;
&lt;li&gt;保障项目的安全、高效和可扩展性。&lt;/li&gt;
&lt;li&gt;按要求完成相关文档的整理和编写&lt;/li&gt;
&lt;li&gt;把控维护项目的影响和规划、实施进度&lt;/li&gt;
&lt;li&gt;研究新技术、新方法、新思想进行技术难题攻坚&lt;/li&gt;
&lt;li&gt;上级领导交办的其它事项&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;欢迎大家投递简历：songam@jfinfo.com&lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Fri, 23 Nov 2018 12:01:32 +0800</pubDate>
      <link>https://ruby-china.org/topics/37813</link>
      <guid>https://ruby-china.org/topics/37813</guid>
    </item>
    <item>
      <title>多表事务</title>
      <description>&lt;p&gt;customer 和 Info 是一对多关系&lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="k"&gt;begin&lt;/span&gt;
&lt;span class="no"&gt;Customer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;transaction&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
    &lt;span class="n"&gt;customer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;Customer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:customer&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="n"&gt;customer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;
    &lt;span class="n"&gt;info&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;Info&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="ss"&gt;:info&lt;/span&gt;&lt;span class="p"&gt;]])&lt;/span&gt;
    &lt;span class="n"&gt;info&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;rescue&lt;/span&gt;
  &lt;span class="n"&gt;respond_to&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
    &lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;render&lt;/span&gt; &lt;span class="ss"&gt;:json&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"success"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kp"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"result"&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"保存失败!"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;事务怎么不起作用呢？info 校验失败，customer 应该回滚，但是却插入数据库了。。
大家多表事务是怎么处理的&lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Tue, 06 Nov 2012 11:10:02 +0800</pubDate>
      <link>https://ruby-china.org/topics/6562</link>
      <guid>https://ruby-china.org/topics/6562</guid>
    </item>
    <item>
      <title>同时保存多个记录，怎么区分校验的是哪个</title>
      <description>&lt;p&gt;多条记录同时保存，怎么区分是对哪条记录的校验？
{:name=&amp;gt;["不能为空字符"], :descs=&amp;gt;["不能为空字符"]}
比如想在 name 后面加个 name1 或 descs1 来区分是第一条记录出错了，怎么区分？
怎能自定义校验吗？&lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Sun, 04 Nov 2012 14:09:39 +0800</pubDate>
      <link>https://ruby-china.org/topics/6517</link>
      <guid>https://ruby-china.org/topics/6517</guid>
    </item>
    <item>
      <title>rails 返回 json 格式的数据时在列表里新加一个属性</title>
      <description>&lt;p&gt;现在是这样：format.json { render :json =&amp;gt; &lt;a href="/user" class="user-mention" title="@user"&gt;&lt;i&gt;@&lt;/i&gt;user&lt;/a&gt; }
返回 [
         {"id":1,"name:"aaa"},
         {id":2,"name:"abb"}
       ]
现要在 user 里加个 count 字段，不是 user 本身的属性
      [
         {"id":1,"name:"aaa","count":2},
         {id":2,"name:"abb","count":3}
       ]&lt;/p&gt;

&lt;p&gt;怎么写 json 返回串？&lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Sat, 04 Aug 2012 12:53:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/4729</link>
      <guid>https://ruby-china.org/topics/4729</guid>
    </item>
    <item>
      <title>rails 里怎么复制一条记录的所有数据给新的实例？</title>
      <description>&lt;p&gt;比如一对多关系中  product(1)  price(n)
复制现有的一条 product 为新的数据，并且将 product 对应的价格也赋给新 product 对应的 price，请问大侠们怎么实现？&lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Mon, 30 Jul 2012 20:41:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/4644</link>
      <guid>https://ruby-china.org/topics/4644</guid>
    </item>
    <item>
      <title>执行 rake assets:precompile 报错</title>
      <description>&lt;p&gt;执行 bundle exec rake assets:precompile --trace 报
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby /usr/local/rvm/gems/ruby-1.9.3-p194@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted! 
Unexpected token: operator (&amp;lt;) (line: 9915, col: 1, pos: 321257)&lt;/p&gt;

&lt;p&gt;Error
    at new JS_Parse_Error (:3096:22)
    at js_error (:3104:15)
    at croak (:3557:17)
    at token_error (:3564:17)
    at unexpected (:3570:17)
    at :3943:17
    at maybe_unary (:4028:27)
    at expr_ops (:4055:32)
    at maybe_conditional (:4059:28)
    at maybe_assign (:4083:28)
  (in /home/rails/agent/app/assets/javascripts/application.js)&lt;br&gt;
不明白因为啥  &lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Fri, 29 Jun 2012 22:08:40 +0800</pubDate>
      <link>https://ruby-china.org/topics/4051</link>
      <guid>https://ruby-china.org/topics/4051</guid>
    </item>
    <item>
      <title>Ckeditor 报 CanCan::AuthorizationNotPerformed in Ckeditor::PicturesController#index</title>
      <description>&lt;p&gt;Ckeditor 富文本上传图片时报 CanCan::AuthorizationNotPerformed in Ckeditor::PicturesController#index&lt;/p&gt;

&lt;p&gt;大家是怎么处理的？  &lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Tue, 26 Jun 2012 15:31:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/3995</link>
      <guid>https://ruby-china.org/topics/3995</guid>
    </item>
    <item>
      <title>nginx passenger 启 production 模式报错</title>
      <description>&lt;p&gt;启 development 模式正常，换成 production 模式报 We're sorry, but something went wrong.
请问是啥原因？？？&lt;/p&gt;

&lt;p&gt;nginx.conf 配置
#user  nobody;
worker_processes  2;&lt;/p&gt;

&lt;p&gt;#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;&lt;/p&gt;

&lt;p&gt;#pid        logs/nginx.pid;&lt;/p&gt;

&lt;p&gt;events {
    worker_connections  10240;
}&lt;/p&gt;

&lt;p&gt;http {
    passenger_root /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12;
    passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.3-p194/ruby;&lt;/p&gt;

&lt;p&gt;client_max_body_size 20M;
    client_body_buffer_size    256k;&lt;/p&gt;

&lt;p&gt;include       mime.types;
    default_type  application/octet-stream;&lt;/p&gt;

&lt;p&gt;sendfile        on;
    keepalive_timeout  60;&lt;/p&gt;

&lt;p&gt;server { 
        listen       80;
        server_name  localhost;
        root /home/rails/agent/public;
        passenger_enabled on;
        rails_env development;  &lt;/p&gt;

&lt;p&gt;error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }&lt;/p&gt;

&lt;p&gt;server {
        listen       8050;
        server_name  localhost;
        root /home/rails/agentc/public;
        passenger_enabled on;
        rails_env production;&lt;/p&gt;

&lt;p&gt;#error_page   500 502 503 504  /50x.html;
        #location = /50x.html {
         #   root   html;
        #}
    }
}&lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Mon, 25 Jun 2012 21:36:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/3985</link>
      <guid>https://ruby-china.org/topics/3985</guid>
    </item>
    <item>
      <title>装 passenger 执行 passenger-install-nginx-module 报错</title>
      <description>&lt;p&gt;如题，出现错误信息
Compiling Passenger support files...&lt;/p&gt;
&lt;h2 id="/usr/bin/ruby18 -S /usr/bin/rake clean nginx"&gt;/usr/bin/ruby18 -S /usr/bin/rake clean nginx&lt;/h2&gt;
&lt;p&gt;rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)&lt;/p&gt;

&lt;p&gt;(See full trace by running task with --trace)
我郁闷了？啥情况？大家帮忙看看  &lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Sat, 26 May 2012 21:19:46 +0800</pubDate>
      <link>https://ruby-china.org/topics/3504</link>
      <guid>https://ruby-china.org/topics/3504</guid>
    </item>
    <item>
      <title>一个应用里有两个地方用到 devise，注销后的转向</title>
      <description>&lt;p&gt;一个应用现在有 devise_for :users 和 devise_for :admins
注销 users 账户的时候跳转到默认的 root 
gitHub 上是在
class ApplicationController &amp;lt; ActionController::Base
  private
  # Overwriting the sign_out redirect path method
  def after_sign_out_path_for(resource_or_scope)
    root_path
  end
end&lt;/p&gt;

&lt;p&gt;我需要把 after_sign_out_path_for 放在哪儿？我新建了 user/registrations 和 user/sessions  &lt;/p&gt;</description>
      <author>nancy</author>
      <pubDate>Tue, 08 May 2012 12:35:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/3144</link>
      <guid>https://ruby-china.org/topics/3144</guid>
    </item>
  </channel>
</rss>
