[上海] 招聘全职或者兼职ruby程序员

38 views
Skip to first unread message

比四九

unread,
May 3, 2012, 9:18:44 AM5/3/12
to shangha...@googlegroups.com

我们在做一个互联网应用, 因为进度需要, 现在还需要一名ruby程序员, 全职或者兼职都ok

项目方向

互联网方向, 具体电话或者邮件详谈. 其实没啥需要保密的, idea人人都有, 只是公开需要和其他股东商量, 麻烦.

项目人员

现在是招聘第一个全职的技术人员, 当然兼职的也欢迎

工资待遇

全职的话, 7k有的, 不过还是看个人水平. 兼职的话得看时间

工作地点

全职在江苏路地铁站, 兼职可以自由了

如果大家对项目其他方面有兴趣, 也欢迎邮件我, 或者在帖子下面吐槽 :)

欢迎感兴趣的同学将简历发到 joe.yangyi # gmail.com

Andersen Fan

unread,
May 6, 2012, 12:22:23 AM5/6/12
to shangha...@googlegroups.com

һ��rails�������ⶨλ�������ˣ�����¡�
�򵥴���ͽ�����£�

def methodname(t)
      q = ModelName.find(xx)    
      t.attr1=1
      q.attr1=1

      p t == q  #true
      p t.eql? q  #true
      p t.equal? q  #false
      p t.save  #false
      p q.save  #true
end

˵���£����������application_control��ij������һ���֣�q��ModelName.find������һ������t��������controller����find����������һ��������ͨ�����ݹ����ġ�

������t==q������q�ܹ����浽��ݿ⣬tÿ�ζ��Ƿ���false�����˽�Ϊʲô
 

Johnson Cole

unread,
May 7, 2012, 3:47:40 AM5/7/12
to shangha...@googlegroups.com
p t == q #true
p t.eql? q #true
我猜是因为对比的是id(eql?是被activesupport重写了),equal?对比的是object_id.
至于save不成功,建议看一下errors。

在 2012年5月6日 下午12:22,Andersen Fan <as18...@gmail.com> 写道:
>
> 一个rails代码问题定位不出来了,请教下。
> 简单代码和结果如下:


>
> def methodname(t)
>       q = ModelName.find(xx)
>       t.attr1=1
>       q.attr1=1
>
>       p t == q  #true
>       p t.eql? q  #true
>       p t.equal? q  #false
>       p t.save  #false
>       p q.save  #true
> end
>

> 说明下,上面代码是application_control中某方法的一部分;q是ModelName.find出来的一个对象,t是在其它controller里面find方法出来的一个对象在通过参数传递过来的。
>
> 问题是t==q,但是q能够保存到数据库,t每次都是返回false,不了解为什么
>
>
> --
> --~--~---------~--~----~------------~-------~--~----~
> Shanghai Ruby&Rails
> 爱好者论坛是一个非营利的民间组织,它旨在为Ruby&Rails爱好者提供一个自由,开放的交流平台,论坛每季度举行一次大型会议,会议的所有费用由赞助商支付,来宾不需交纳任何费用。
> We push the china ruby&rails community forward!!
> Shanghai Ruby&Rails的邮件列表地址是 shangha...@googlegroups.com
> 要了解更多详情,请访问 http://groups.google.com/group/shanghaionrails?hl=en?hl=en
> 退订请发送mail到 shanghaionrai...@googlegroups.com
> --~--~---------~--~----~------------~-------~--~----~

Andersen Fan

unread,
May 7, 2012, 4:20:43 AM5/7/12
to shangha...@googlegroups.com
saveֻ�Ƿ���false��û�п�����ݿ����Ӧlog��Ҳû����sql update/rollback��log����֣���
Ŀǰ�Ҿ�ֱ����ԭ����controller���������ݣ�����������model�����ˡ���model�����Ƿ��ܴ���Ŷ��
�Ժ���ʱ������о���Thx��

> Date: Mon, 7 May 2012 15:47:40 +0800
> Subject: Re: [shanghaionrails] ��������
> From: up2u...@gmail.com
> To: shangha...@googlegroups.com

>
> p t == q #true
> p t.eql? q #true
> �Ҳ�����Ϊ�Աȵ���id��eql���DZ�activesupport��д�ˣ���equal���Աȵ���object_id.
> ����save���ɹ������鿴һ��errors��
>
> �� 2012��5��6�� ����12:22��Andersen Fan <as18...@gmail.com> ���

> >
> > һ��rails�������ⶨλ�������ˣ�����¡�
> > �򵥴���ͽ�����£�
> >
> > def methodname(t)
> > q = ModelName.find(xx)
> > t.attr1=1
> > q.attr1=1
> >
> > p t == q #true
> > p t.eql? q #true
> > p t.equal? q #false
> > p t.save #false
> > p q.save #true
> > end
> >
> > ˵���£����������application_control��ij������һ���֣�q��ModelName.find������һ������t��������controller����find����������һ��������ͨ�����ݹ����ġ�
> >
> > ������t==q������q�ܹ����浽��ݿ⣬tÿ�ζ��Ƿ���false�����˽�Ϊʲô
> >
> >
> > --
> > --~--~---------~--~----~------------~-------~--~----~
> > Shanghai Ruby&Rails
> > ��������̳��һ����Ӫ��������֯����ּ��ΪRuby&Rails�������ṩһ�����ɣ����ŵĽ���ƽ̨����̳ÿ���Ⱦ���һ�δ��ͻ��飬��������з�����������֧�����������轻���κη��á�

> > We push the china ruby&rails community forward!!
> > Shanghai Ruby&Rails���ʼ��б��ַ�� shangha...@googlegroups.com
> > Ҫ�˽������飬����� http://groups.google.com/group/shanghaionrails?hl=en?hl=en
> > �˶��뷢��mail�� shanghaionrai...@googlegroups.com
> > --~--~---------~--~----~------------~-------~--~----~
>
> --
> --~--~---------~--~----~------------~-------~--~----~
> Shanghai Ruby&Rails ��������̳��һ����Ӫ��������֯����ּ��ΪRuby&Rails�������ṩһ�����ɣ����ŵĽ���ƽ̨����̳ÿ���Ⱦ���һ�δ��ͻ��飬��������з�����������֧�����������轻���κη��á�

> We push the china ruby&rails community forward!!
> Shanghai Ruby&Rails���ʼ��б��ַ�� shangha...@googlegroups.com
> Ҫ�˽������飬����� http://groups.google.com/group/shanghaionrails?hl=en?hl=en
> �˶��뷢��mail�� shanghaionrai...@googlegroups.com
> --~--~---------~--~----~------------~-------~--~----~

Johnson Cole

unread,
May 8, 2012, 4:21:41 AM5/8/12
to shangha...@googlegroups.com
try this:
p t.errors

在 2012年5月7日 下午4:20,Andersen Fan <as18...@gmail.com> 写道:
> save只是返回false,没有看到数据库的相应log(也没看到sql update/rollback等log,奇怪)。
> 目前我就直接在原来的controller里面操作数据,不参数传递这个model对象了。(model对象是否不能传递哦)
> 以后有时间的再研究。Thx。


>
>> Date: Mon, 7 May 2012 15:47:40 +0800

>> Subject: Re: [shanghaionrails] 代码疑问


>> From: up2u...@gmail.com
>> To: shangha...@googlegroups.com
>
>>
>> p t == q #true
>> p t.eql? q #true

>> 我猜是因为对比的是id(eql?是被activesupport重写了),equal?对比的是object_id.
>> 至于save不成功,建议看一下errors。
>>
>> 在 2012年5月6日 下午12:22,Andersen Fan <as18...@gmail.com> 写道:
>> >
>> > 一个rails代码问题定位不出来了,请教下。
>> > 简单代码和结果如下:
>> >

>> > def methodname(t)
>> > q = ModelName.find(xx)
>> > t.attr1=1
>> > q.attr1=1
>> >
>> > p t == q #true
>> > p t.eql? q #true
>> > p t.equal? q #false
>> > p t.save #false
>> > p q.save #true
>> > end
>> >
>> >

>> > 说明下,上面代码是application_control中某方法的一部分;q是ModelName.find出来的一个对象,t是在其它controller里面find方法出来的一个对象在通过参数传递过来的。
>> >
>> > 问题是t==q,但是q能够保存到数据库,t每次都是返回false,不了解为什么
>> >
>> >
>> > --
>> > --~--~---------~--~----~------------~-------~--~----~
>> > Shanghai Ruby&Rails
>> >
>> > 爱好者论坛是一个非营利的民间组织,它旨在为Ruby&Rails爱好者提供一个自由,开放的交流平台,论坛每季度举行一次大型会议,会议的所有费用由赞助商支付,来宾不需交纳任何费用。

>> > We push the china ruby&rails community forward!!

>> > Shanghai Ruby&Rails的邮件列表地址是 shangha...@googlegroups.com
>> > 要了解更多详情,请访问 http://groups.google.com/group/shanghaionrails?hl=en?hl=en

>> > 退订请发送mail到 shanghaionrai...@googlegroups.com


>> > --~--~---------~--~----~------------~-------~--~----~
>>
>> --
>> --~--~---------~--~----~------------~-------~--~----~
>> Shanghai Ruby&Rails

>> 爱好者论坛是一个非营利的民间组织,它旨在为Ruby&Rails爱好者提供一个自由,开放的交流平台,论坛每季度举行一次大型会议,会议的所有费用由赞助商支付,来宾不需交纳任何费用。

>> We push the china ruby&rails community forward!!

>> Shanghai Ruby&Rails的邮件列表地址是 shangha...@googlegroups.com
>> 要了解更多详情,请访问 http://groups.google.com/group/shanghaionrails?hl=en?hl=en

>> 退订请发送mail到 shanghaionrai...@googlegroups.com


>> --~--~---------~--~----~------------~-------~--~----~
>
> --
> --~--~---------~--~----~------------~-------~--~----~
> Shanghai Ruby&Rails

> 爱好者论坛是一个非营利的民间组织,它旨在为Ruby&Rails爱好者提供一个自由,开放的交流平台,论坛每季度举行一次大型会议,会议的所有费用由赞助商支付,来宾不需交纳任何费用。

> We push the china ruby&rails community forward!!

Andersen Fan

unread,
May 8, 2012, 6:10:13 AM5/8/12
to shangha...@googlegroups.com
ԭ��������������ҳ���л��

��ȥ����룬����Ī���û���쳣�ˡ����Ƶ�ʱͷ���ĸ�ϸ�ڸ���ˡ�

ѧϰ�ˣ���л��

> Date: Tue, 8 May 2012 16:21:41 +0800

> Subject: Re: [shanghaionrails] ��������
> From: up2u...@gmail.com
> To: shangha...@googlegroups.com
>
> try this:
> p t.errors
>
> �� 2012��5��7�� ����4:20��Andersen Fan <as18...@gmail.com> ���

> > saveֻ�Ƿ���false��û�п�����ݿ����Ӧlog��Ҳû����sql update/rollback��log����֣���
> > Ŀǰ�Ҿ�ֱ����ԭ����controller���������ݣ�����������model�����ˡ���model�����Ƿ��ܴ���Ŷ��
> > �Ժ���ʱ������о���Thx��

> >
> >> Date: Mon, 7 May 2012 15:47:40 +0800
> >> Subject: Re: [shanghaionrails] ��������

> >> From: up2u...@gmail.com
> >> To: shangha...@googlegroups.com
> >
> >>
> >> p t == q #true
> >> p t.eql? q #true
> >> �Ҳ�����Ϊ�Աȵ���id��eql���DZ�activesupport��д�ˣ���equal���Աȵ���object_id.
> >> ����save���ɹ������鿴һ��errors��
> >>
> >> �� 2012��5��6�� ����12:22��Andersen Fan <as18...@gmail.com> ���
> >> >
> >> > һ��rails�������ⶨλ�������ˣ�����¡�
> >> > �򵥴���ͽ�����£�
> >> >
> >> > def methodname(t)
> >> > q = ModelName.find(xx)
> >> > t.attr1=1
> >> > q.attr1=1
> >> >
> >> > p t == q #true
> >> > p t.eql? q #true
> >> > p t.equal? q #false
> >> > p t.save #false
> >> > p q.save #true
> >> > end
> >> >
> >> >
> >> > ˵���£����������application_control��ij������һ���֣�q��ModelName.find������һ������t��������controller����find����������һ��������ͨ�����ݹ����ġ�
> >> >
> >> > ������t==q������q�ܹ����浽��ݿ⣬tÿ�ζ��Ƿ���false�����˽�Ϊʲô
> >> >
> >> >
> >> > --
> >> > --~--~---------~--~----~------------~-------~--~----~
> >> > Shanghai Ruby&Rails
> >> >
> >> > ��������̳��һ����Ӫ��������֯����ּ��ΪRuby&Rails�������ṩһ�����ɣ����ŵĽ���ƽ̨����̳ÿ���Ⱦ���һ�δ��ͻ��飬��������з�����������֧�����������轻���κη��á�
> >> > We push the china ruby&rails community forward!!
> >> > Shanghai Ruby&Rails���ʼ��б��ַ�� shangha...@googlegroups.com
> >> > Ҫ�˽������飬����� http://groups.google.com/group/shanghaionrails?hl=en?hl=en
> >> > �˶��뷢��mail�� shanghaionrai...@googlegroups.com

> >> > --~--~---------~--~----~------------~-------~--~----~
> >>
> >> --
> >> --~--~---------~--~----~------------~-------~--~----~
> >> Shanghai Ruby&Rails
> >> ��������̳��һ����Ӫ��������֯����ּ��ΪRuby&Rails�������ṩһ�����ɣ����ŵĽ���ƽ̨����̳ÿ���Ⱦ���һ�δ��ͻ��飬��������з�����������֧�����������轻���κη��á�
> >> We push the china ruby&rails community forward!!
> >> Shanghai Ruby&Rails���ʼ��б��ַ�� shangha...@googlegroups.com
> >> Ҫ�˽������飬����� http://groups.google.com/group/shanghaionrails?hl=en?hl=en
> >> �˶��뷢��mail�� shanghaionrai...@googlegroups.com

> >> --~--~---------~--~----~------------~-------~--~----~
> >
> > --
> > --~--~---------~--~----~------------~-------~--~----~
> > Shanghai Ruby&Rails
> > ��������̳��һ����Ӫ��������֯����ּ��ΪRuby&Rails�������ṩһ�����ɣ����ŵĽ���ƽ̨����̳ÿ���Ⱦ���һ�δ��ͻ��飬��������з�����������֧�����������轻���κη��á�
> > We push the china ruby&rails community forward!!
> > Shanghai Ruby&Rails���ʼ��б��ַ�� shangha...@googlegroups.com
> > Ҫ�˽������飬����� http://groups.google.com/group/shanghaionrails?hl=en?hl=en
> > �˶��뷢��mail�� shanghaionrai...@googlegroups.com
> > --~--~---------~--~----~------------~-------~--~----~
>
> --
> --~--~---------~--~----~------------~-------~--~----~
> Shanghai Ruby&Rails ��������̳��һ����Ӫ��������֯����ּ��ΪRuby&Rails�������ṩһ�����ɣ����ŵĽ���ƽ̨����̳ÿ���Ⱦ���һ�δ��ͻ��飬��������з�����������֧�����������轻���κη��á�

> We push the china ruby&rails community forward!!
Reply all
Reply to author
Forward
0 new messages