Ruby on Rails
Thursday, July 5, 2012
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment