I’m having issues submitting a form to the create action.
In routes I have
This resource is not using an ActiveRecord model, so I can’t use the
form_for method in the view.
In app/views/encryption_passphrases/new.html.erb I have this:
<% form_tag(encryption_passphrases_url, :method => “post”) do |f| %>
<%= password_field_tag :encryption_passphrase %>
<%= submit_tag "Create" %><% end %>
This results in the following html:
When I hit the Create button, I get this error on the resulting page:
No action responded to index”
I don’t know why it’s going to the get http method because it says
post in the form tag.
Can anybody tell me how to fix this?