发送邀请后Rails Devise_invitable路由错误

时间:2012-10-04 04:09:52

标签: ruby-on-rails ruby-on-rails-3 devise

我安装了devise_invitable gem并获得了一个工作视图(用户/邀请/新),我可以发送邀请给某些电子邮件。一旦我点击“发送邀请”按钮。我被重定向到/邀请/用户,路由错误“没有路由匹配[POST]”/邀请/用户“。我很感激,如果有人知道为什么宝石重定向到这条未定义的新路线。我错过了一步在安装中?下面是我目前的佣金路线信息:

root        /                                      landing#index
           landing_index GET    /landing/index(.:format)               landing#index
        new_user_session GET    /users/sign_in(.:format)               devise/sessions#new
            user_session POST   /users/sign_in(.:format)               devise/sessions#create
    destroy_user_session DELETE /users/sign_out(.:format)              devise/sessions#destroy
  user_omniauth_callback        /users/auth/:action/callback(.:format) devise/omniauth_callbacks#(?-mix:(?!))
cancel_user_registration GET    /users/cancel(.:format)                registrations#cancel
       user_registration POST   /users(.:format)                       registrations#create
   new_user_registration GET    /users/sign_up(.:format)               registrations#new
  edit_user_registration GET    /users/edit(.:format)                  registrations#edit
                         PUT    /users(.:format)                       registrations#update
                         DELETE /users(.:format)                       registrations#destroy
             user_unlock POST   /users/unlock(.:format)                devise/unlocks#create
         new_user_unlock GET    /users/unlock/new(.:format)            devise/unlocks#new
                         GET    /users/unlock(.:format)                devise/unlocks#show
  accept_user_invitation GET    /users/invitation/accept(.:format)     devise/invitations#edit
         user_invitation POST   /users/invitation(.:format)            devise/invitations#create
     new_user_invitation GET    /users/invitation/new(.:format)        devise/invitations#new
                         PUT    /users/invitation(.:format)            devise/invitations#update
                   posts GET    /posts(.:format)                       posts#index
                         POST   /posts(.:format)                       posts#create
                new_post GET    /posts/new(.:format)                   posts#new
               edit_post GET    /posts/:id/edit(.:format)              posts#edit
                    post GET    /posts/:id(.:format)                   posts#show
                         PUT    /posts/:id(.:format)                   posts#update
                         DELETE /posts/:id(.:format)                   posts#destroy
                profiles GET    /profiles(.:format)                    profiles#index
                         POST   /profiles(.:format)                    profiles#create
             new_profile GET    /profiles/new(.:format)                profiles#new
            edit_profile GET    /profiles/:id/edit(.:format)           profiles#edit
                 profile GET    /profiles/:id(.:format)                profiles#show
                         PUT    /profiles/:id(.:format)                profiles#update
                         DELETE /profiles/:id(.:format)                profiles#destroy

0 个答案:

没有答案