1
我有以下型號:的Rails 3 devise_for和STI
User
Athlete < User
Coach < User
在我的路線,我有以下幾點:
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks", :registrations => "registrations" }
我想創造每個sign_up
路徑的路線(即:/ sign_up/coach,/ sign_up/athlete)...我應該創建兩個不同的註冊控制器,還是有辦法用一個註冊控制器來做到這一點?