rails routing and params with a '.' in them -


I'm using Rail to protect access to files that serve only to some web applications Should be done To do this, I have a controlling system that accepts information about the file that they want to use, checks their authorization, and then if they are authorized, then send them X- Use the sendfile file, except for a concept, the concept works fine: if they request a resource with someone in it my routing does not know how to handle it. Gon I have file:

  Match Attibi_ Resources / / guid /: Resource '= & gt; 'Atb_resources # show' ,: as = & gt; : Get_atb_resource ,: by = & gt; Get:   

and then if I try to do this in my imagination:

  go 'show' ,: guid = & gt; 'Some_guid',: resource = & gt; 'Blah.txt'   

Device failed with one:

  Failure / Error: Get 'Show' ,: guid = & gt; @ ATB.Guide ,: Resources = & gt; 'Blah.txt' ActionController :: routing error: no root matches {: guid = & gt; "ABCDEFG5",: resource = & gt; "Blah.txt" ,: Controller => "Atb_resources" ,: action = & gt; "Show"}   

But it's okay:

  find 'show' ,: guid = & gt; 'Some_guid',: resource = & gt; 'BlahDottxt'   

I am thinking that the problem is with my routing, but I really can not understand how time affects the routes. Any ideas?

For rail 3 you can add it to your route:

 < Code>: Barriers = & gt; {: Resources = & gt; / 2] (APAIC):  
 : requirements => For Rail 2 /.*/}   

{: resource => /.>

Railway will try to explain .txt as a format specifier without one of them.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -