フォーム パスはuser/invitations/invitations/edit.html.erb
、new.html.erb
Edit.html.erb
<h2><%= t 'devise.invitations.edit.header' %></h2>
<%= form_for resource, :as => resource_name, :url => invitation_path(resource_name), :html => { :method => :put } do |f| %>
<%= devise_error_messages! %>
<%= f.hidden_field :invitation_token %>
<p><%= f.label :username %><br />
<%= f.text_field :username %></p>
<p><%= f.label :password %><br />
<%= f.password_field :password %></p>
<p><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></p>
<p><%= f.submit t("devise.invitations.edit.submit_button") %></p>
<% end %>
自分で次を追加しましたedit.html.erb
が、フォームにフィールドが表示されません
<p><%= f.label :username %><br />
<%= f.text_field :username %></p>
これに対処する方法を教えてください。そして、devise_invitable のフォームをカスタマイズします