Reputation: 1437
I am getting this error on my barely-customized devise
new password page:
wrong number of arguments (given 0, expected 1+)
My ERB is fairly simple:
<h1 style="color: black">Forgot Your Password?</h1>
<%= simple_form_for(resource, as: resource_name, url: password_path, html: { method: :post }) do |f| %> <<<<<<<ERROR CALLED ON THIS LINE
<%= f.error_notification %>
<div class="form-inputs text-left">
<%= f.input :email, required: true, autofocus: true %>
</div>
<div class="form-actions">
<%= f.button :submit, "Send Me Reset Password Instructions", class: "btn-custom" %>
</div>
<% end %>
<%= render "devise/shared/links" %>
But I can't seem to figure out why this error is being generated. Has anyone encountered this problem before?
Upvotes: 0
Views: 1007
Reputation: 71
You need to change password_path
for password_path(resource_name)
Upvotes: 2