how to handle .something in the url

Posted by dorelal on Stack Overflow See other posts from Stack Overflow or by dorelal
Published on 2010-03-16T01:05:08Z Indexed on 2010/03/16 1:09 UTC
Read the original article Hit count: 275

Filed under:

I am using rails 2.3.5 . I have a resource for event.

  map.resources :events

  respond_to do |format|
        format.html
        format.js { render :text =>  @event.to_json, :layout => false }
  end

It is a public site and sometimes I get urls like

http://domain.com/events/14159-international-hardware-show-2010+91+"prashant"+2010+OR+email+OR+data+OR+base+-ALIBA.BACOM&hl=en&ct=clnk

I keep getting hoptoad exception email. How do I handle such cases?

© Stack Overflow or respective owner

Related posts about ruby-on-rails