{"id":833,"date":"2022-08-30T15:07:56","date_gmt":"2022-08-30T15:07:56","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/undefined-method-new_confirmation_path-confirmation-module-devise-mongoid-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:07:56","modified_gmt":"2022-08-30T15:07:56","slug":"undefined-method-new_confirmation_path-confirmation-module-devise-mongoid-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/undefined-method-new_confirmation_path-confirmation-module-devise-mongoid-collection-of-common-programming-errors\/","title":{"rendered":"undefined method `new_confirmation_path&#39; Confirmation Module Devise + MongoID-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to work with Rails 3.1 + Devise Module <strong>:confirmable<\/strong> + MongoID with this template:<\/p>\n<p><strong>https:\/\/github.com\/RailsApps\/rails3-application-templates\/raw\/master\/rails3-mongoid-devise-template.rb<\/strong><\/p>\n<p>Mi template working fine but now I have generate confirmable views with the next command:<\/p>\n<p><strong>rails generate devise:views confirmable<\/strong><\/p>\n<p>Generate this:<\/p>\n<pre><code>invoke  Devise::Generators::SharedViewsGenerator\n  create    app\/views\/confirmable\/mailer\n  create    app\/views\/confirmable\/mailer\/confirmation_instructions.html.erb\n  create    app\/views\/confirmable\/mailer\/reset_password_instructions.html.erb\n  create    app\/views\/confirmable\/mailer\/unlock_instructions.html.erb\n  create    app\/views\/confirmable\/shared\n  create    app\/views\/confirmable\/shared\/_links.erb\n  invoke  form_for\n  create    app\/views\/confirmable\/confirmations\n  create    app\/views\/confirmable\/confirmations\/new.html.erb\n  create    app\/views\/confirmable\/passwords\n  create    app\/views\/confirmable\/passwords\/edit.html.erb\n  create    app\/views\/confirmable\/passwords\/new.html.erb\n  create    app\/views\/confirmable\/registrations\n  create    app\/views\/confirmable\/registrations\/edit.html.erb\n  create    app\/views\/confirmable\/registrations\/new.html.erb\n  create    app\/views\/confirmable\/sessions\n  create    app\/views\/confirmable\/sessions\/new.html.erb\n  create    app\/views\/confirmable\/unlocks\n  create    app\/views\/confirmable\/unlocks\/new.html.erb\n<\/code><\/pre>\n<p>I catch the next error to refresh the page:<\/p>\n<p><strong>NoMethodError in Devise\/sessions#new<\/strong><\/p>\n<pre><code>undefined method `new_confirmation_path' for #\n\n11: \n12: \n13: \n14:   <br \/>\n15: \n16: \n17: \n<\/code><\/pre>\n<p>Why not working my login, sign_up&#8230;etc pages?<\/p>\n<ol>\n<li>\n<p>For every people que have this problem when installed devise + mongoid + :confirmable module the problem is that<\/p>\n<p>!!You must restart the server\u00a1\u00a1<\/p>\n<p>The steps are:<\/p>\n<p>When you have installed devise + mongoid then:<\/p>\n<p>1\u00ba enable :confirmable module in your User Model<\/p>\n<p>2\u00ba exec the command:<\/p>\n<pre><code>rails generate devise:views confirmable \n<\/code><\/pre>\n<p>3\u00ba Restart the server rails Voila!<\/p>\n<p>Thank you very much \u2013<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:48:05. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying to work with Rails 3.1 + Devise Module :confirmable + MongoID with this template: https:\/\/github.com\/RailsApps\/rails3-application-templates\/raw\/master\/rails3-mongoid-devise-template.rb Mi template working fine but now I have generate confirmable views with the next command: rails generate devise:views confirmable Generate this: invoke Devise::Generators::SharedViewsGenerator create app\/views\/confirmable\/mailer create app\/views\/confirmable\/mailer\/confirmation_instructions.html.erb create app\/views\/confirmable\/mailer\/reset_password_instructions.html.erb create app\/views\/confirmable\/mailer\/unlock_instructions.html.erb create app\/views\/confirmable\/shared create app\/views\/confirmable\/shared\/_links.erb invoke form_for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=833"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/833\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}