Alexのぶろぐ

programming/scala/play!/php/javascript/three.js/unity/xcode5/rails/rubymine メモ用です

Play For Scala つまずいたところ

routeで

'GET /products/new'を‘GET /products/:ean'の後ろに記述しないとエラーがでる

参考:http://www.manning-sandbox.com/thread.jspa;jsessionid=f0HFJnZp0s7PO1E7?messageID=131178&#131178

 

The route for ‘GET /products/new’ has to be before the route for ‘GET /products/:ean’ - the first route in the file matches, and if you have them the wrong way around, /products/new matches the other route, and the router tries to parse 'new' as the Long ':ean' parameter. 

 

よくわからない、、、