$() method is for dom elements, not strings.
http://www.prototypejs.org/api/utility/dollar

I don't use String#sub at all so I am less familiar about its workings
but this doesn't seem right. If you pass it a string it should escape
all regexp special chars l similar to mootools method
String#escapeRegExp.

Please read about submiting a ticket here: http://www.prototypejs.org/contribute
and please include a link to this discussion in the ticket.

Thanks.
JDD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to