Unfortunately not.
app/controllers/desk_controller.rb:148: syntax error,
unexpected ',',
expecting ')'
:conditions => [(
'LOWER(fullname) LIKE
?) OR (LOWER(email) LIKE ?)','%' + value.downcase + '%','%'
+
value.downcase + '%']
^
app/controllers/desk_controller.rb:148: syntax error,
unexpected ',',
expecting ')'
:conditions => [(
'LOWER(fullname) LIKE
?) OR (LOWER(email) LIKE ?)','%' + value.downcase + '%','%'
+
value.downcase + '%']
^
app/controllers/desk_controller.rb:148: syntax error,
unexpected ']',
expecting ')'
:conditions => [(
'LOWER(fullname) LIKE
?) OR (LOWER(email) LIKE ?)','%' + value.downcase + '%','%'
+
value.downcase + '%']
^
app/controllers/desk_controller.rb:149: syntax error,
unexpected ',',
expecting ')'
app/controllers/desk_controller.rb:151: syntax error,
unexpected
tIDENTIFIER, expecting ']'
render :partial => 'contacts' and return
Thorsten wrote:
> :conditions => [( 'LOWER(fullname) LIKE
> ?) OR (LOWER(city) LIKE ?)','%' + value.downcase +
'%','%' +
> value.downcase + '%']
>
> that doesn't work?
--
Posted via http://www.ruby-forum.com
/.
--~--~---------~--~----~------------~-------~--~----~
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 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
-~----------~----~----~----~------~----~------~--~---
|