Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就像 Rails 路线中的“匹配”。
match '/signup', :to => 'users#new'
我喜欢清理我的网址。
当我的用户必须注册时,我不喜欢公开#/users/new URL,而只公开/#/signup
您可以指定路由的Users/New路径:
Users/New
this.route('new', { path: '/signup' });