Joao Silva wrote: > how to ignore case in highlight() function? Rails uses /i on when creating the Regexp for matching in the highlight method, this makes the regular expression ignore case. So it seems it already behaves as you want.
http://github.com/rails/rails/blob/a147becfb86b689ab25e92edcfbb4bcc04108099/actionpack/lib/action_view/helpers/text_helper.rb#L110 Best, Michael Guterl -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

