Rails3 Devise undefined method `confirmation_url'

后端 未结 3 1870
傲寒
傲寒 2020-12-14 15:48

I\'ve seemingly set up Devise for my User authentication, with the :confirmable option set.

Everything seems to run fine when I run it in the browser, I sign up, go

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-14 16:33

    It simply turned out that when I ran rails generate devise:views, it generated incorrect paths when compared to the routes devise_for :user generated. It also generated some other issues, such as the user_confirmation_url pointing to @resource, as the first parameter; when it shouldn't have.

    (I didn't want the question to be left unanswered, I'm unsure as to the typical etiquette. If I'm wrong in doing this, please let me know).

提交回复
热议问题