Groups
Groups
Sign in
Groups
Groups
DataMapper
Conversations
About
Send feedback
Help
Case Insensitive Search
42 views
Skip to first unread message
Sid Wood
unread,
Mar 28, 2011, 8:51:47 AM
3/28/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to datam...@googlegroups.com
I've resorted to using conditions syntax to preform a case insensitive search.
Widgets.all(:conditions => ['UPPER(name) LIKE ?', "%#{params[:query]}%".upcase])
I feel like I've violated DataMapper with my n00bness.
Is there a better way?
Reply all
Reply to author
Forward
0 new messages