Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Email in URL Reproduces Routing Error

#1569

The title pretty much says it all. I'm trying to get Rails to handle emails in GET requests, so this is in my routes.rb:

map.connect ':controller' map.connect ':controller/:action/:id' map.connect ':controller/:action/:id/:argument'

email@email.com">http://localhost/controller/acti...

The above produces a routing error.

http://localhost/controller/acti...

The above works appropriately.

The only time this fails is when a dot is present. Nothing in my routes.rb file would interfere with this.

Reported by Nick Kezhaya · December 14th, 2008 @ 01:42 AM

State: stale
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Frederick Cheung
    Frederick Cheung

    I vaguely recall something like this, it boils down to rails thinking that the . should indicate the format of the response (ie .xml, .json etc...)

    December 14th, 2008 @ 09:44 AM

  2. Pratik
    Pratik
    • State changed from new to stale

    Is this still an issue ? A failing test would greatly help. Might wanna have a glance at http://guides.rails.info/contrib...

    Thanks !

    March 8th, 2009 @ 05:22 PM

  3. MikZ
    MikZ

    Yes it is. Even in 3.0. Dot cannot be in url.

    September 26th, 2010 @ 01:42 PM