阅读背景:

如何覆盖Devise控制器路由以使用我的原始用户#create action?

来源:互联网 

I have devise set-up, and it works great when a new user is going through the registration process themselves but before implementing Devise, admin had the ability to create users and behavior related to that was in my old users controller. Now that I am using devise when I visit my old forms, new action triggers fine but when I actually submit the form, no matter what I do it goes to the Devise's registration controller create action. I know that I can override the controller and copy the code that I had in my old users controller there but I was wondering if there was a way to prevent this behavior on certain calls?I have devise set-up, and it works great when a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: