I am encountering an error while designing a registration page using form_for html helper. The code is-
<h1>Register account</h1>
<%= form_for @changeset, registration_path(@conn, :create), [as:
:registration, id: "registration-form"], fn f -> %>
<div class="form-group">
<%= label f, :name, class: "control-label" %>
<%= text_input f, :name, class: "form-control" %>
<%= error_tag f, :name %>
</div>
<%= submit "Register", class: "btn btn-primary" %>
<% end %>
And the error is-
Compilation error in file lib/manage_contracts_web_web/views/registration_view.ex ==
** (CompileError) lib/manage_contracts_web_web/views/registration_view.ex:2: undefined function registration_path/2
Please help me resolve this error.