Hi,
I have a issue in OR confition in where clause. Use rails 3 + mongoDB
(Mongoid). Please send me any solutions asap.
I have a condition: where({:target_device_os_max_ver => appver.to_s} ||
{:target_device_os_min_ver => appver.to_s})
Thanks
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/GxHcseqBTNAJ.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-US.
*where(*:target_device_os_max_ver => appver.to_s*).or(*:target_device_os_min_ver => appver.to_s*)* On 6 July 2012 11:05, harshad <harshad-neH//8vQLKEFoECaAgFIynS5uNuOjpZe@public.gmane.org> wrote:> Hi, > > I have a issue in OR confition in where clause. Use rails 3 + mongoDB > (Mongoid). Please send me any solutions asap. > I have a condition: where({:target_device_os_max_ver => appver.to_s} || > {:target_device_os_min_ver => appver.to_s}) > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/GxHcseqBTNAJ. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en-US. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Hi,
I solve my isseu
where(:$or => [{:target_device_os_max_ver =>
appver.to_s},{:target_device_os_min_ver => appver.to_s}])
On Friday, July 6, 2012 11:05:03 AM UTC+5:30, harshad
wrote:>
> Hi,
>
> I have a issue in OR confition in where clause. Use rails 3 + mongoDB
> (Mongoid). Please send me any solutions asap.
> I have a condition: where({:target_device_os_max_ver => appver.to_s} ||
> {:target_device_os_min_ver => appver.to_s})
>
> Thanks
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/wdSd8ZFI1DQJ.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en-US.