On 11/21/08, Jon Hancock <[EMAIL PROTECTED]> wrote:
>
> I have the following route:
>
> match('/register(/:email)', :method => :get).to(:controller =>
> 'users', :action => 'new').name(:register)
>
> With the above route, the following work:
> https://shellshadow.com/register
> https://shellshadow.com/register/[EMAIL PROTECTED]
>
> but something with a period in the param does not:
> https://shellshadow.com/register/[EMAIL PROTECTED]
>
> Any ideas on how to deal with this? I suppose I can break down and
> encode the param like:
> https://shellshadow.com/register/[EMAIL PROTECTED]
>
> thanks, Jon
> >
>
Hi Jon
You should be able to setup a regex for the email param in the match
method, something like
match("/register(:email)", :email => /regexp here/).....
Hth
Daniel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---