我有如下的一些路由
get '/home' => 'static_pages#home_page'
get '/pricing' => 'static_pages#pricing'
get '/faq' => 'static_pages#faqs'
get '/about' => 'static_pages#about_page'
get '/url' => 'static_pages#url_page'
get '/plan' => 'user_plan#plan'
get '/subscription' => 'user_plan#subscription'
get '/finish' => 'user_plan#finish'
get '/upgrade' => 'user_plan#upgrade'
然后 除了以上的之外其余的都要匹配这个规则
get '/:id' => 'nodes#userPage'
求大神帮解释下 该如何匹配。关于顺序问题 我换过位置了 依然没法弄 本来想用正则 但是 rails 的路由规则不支持"^"