我的路线文件中有这个
match "/:url" => redirect_to :back, constraints: { url: /^keys.*/ }
但我收到此消息错误
routes.rb:132: syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '(' (SyntaxError)
match "/:url" => redirect_to :back, constraints: { url: /^keys.*/ }
^
我哪里做错了 ?