I need a rails route that takes into account 2 restrictions. How can this be done? Two limitations
match ':id' => 'pages#temp', :constraints => { :uuid => /[A-Za-z\d]([-\w]{,498}[A-Za-z\d])?/ } root :to => 'pages#temp', :constraints => lambda {|r| r.env["warden"].authenticate? }
How can I use one of these methods with two restrictions? Thanks
match ':id' => 'pages#temp', :constraints =>
source share