I came across the same problem in one of my routes and my hack was to
use a defer_to block :

match('/user/:username', :username => (.+) ).defer_to do |request,
params|

  username = params[:username] + params[:format]
  if User.first(:username => username )
       params[:username] = username
   else
       raise NotFound
   end

end

That may or may not work for you.


Hopefully, that gets fixed in Merb 1.1

hth,
-a



On Mar 3, 9:07 pm, Kurt Schrader <[email protected]> wrote:
> Hey all,
>
> I have a URL on my site that looks like this:
>
> /artists/...And+You+Will+Know+Us+by+the+Trail+of+Dead
>
> that blows up with the error:
>
> No routes match the request: /artists/...And You Will Know Us by the  
> Trail of Dead
>
> Has anyone else had to deal with routes in Merb that have periods in  
> them? My code works fine for anything that doesn't have a period in  
> it, but I can't figure out an easy way to make this work.
>
> -Kurt
>
> -----
> [email protected]http://kurt.karmalab.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to