Routes regex constraint not working as expected with subgroup in Rails 4 -


मेरे पास निम्न बाधा है:

  get '/: name' = & gt; "उत्पादों # शो",: जैसा = & gt; : उत्पाद,: बाधाएं = & gt; निम्न नाम:  
  / एए - एए     

लेकिन अगर मैं / \ w + (- \ w +) करता हूँ तो * /। मैच ('aa - aa') मुझे एक मैचडेटा ऑब्जेक्ट मिलेगा। तो, रेल कैसे रेगेक्स की कमी को संभालता है? यह क्यों । Match ?

के साथ संगत नहीं हो रहा है इस प्रकार की बाध्यता:

  / \ A # {tests [key]} \ z / === भागों [कुंजी]  

इसे देखें:

यही कारण है कि यह पास नहीं होगा।


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -