需要一些幫助!骨幹路由器忽略搜索路徑
我試圖讓我的骨幹路由器,以配合這條路線: http://localhost:5150/search_results?utf8=%E2%9C%93&keywords=&location=Norfolk%2C+VA&commit=Search
..和沒有什麼工作。非常令人沮喪!
這是我在Backbone的第一次嘗試,所以建議會很棒。
'/search_results?*': 'search_results'
# NOPE
'/search_results?foo=:foo': 'search_results'
# NOPE
'/search_results?foo*': 'search_results'
# NOPE
'/search_results?*queryString': 'search_results'
# NOPE
'search_results?*queryString': 'search_results'
# NOPE
'search_results?*': 'search_results'
# NOPE
'search_results?foo=:foo': 'search_results'
# NOPE
'search_results?foo*': 'search_results'
# NOPE
'/search_results': 'search_results'
# NOPE SERIOUSLY??
'/search_results': 'search_results'
# WTF!!!!!!!!!!!!!!!!!!!
':search_results?*': 'search_results'
# NOPE
':search_results?:querystring': 'search_results'
# NOPE
可能重複(http://stackoverflow.com/questions/11671400/navigate-route-with-querystring) – 2013-06-29 17:43:00