我有以下型号:
User
Athlete < User
Coach < User
在我的路线中,我有以下内容:
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks", :registrations => "registrations" }
我想为每条sign_up
路径创建一个路由(即:/sign_up/coach、/sign_up/athlete)...我应该创建两个不同的注册控制器还是有办法只用一个注册控制器来做到这一点?