I'm having issues submitting a form to the create action. In routes I have
map.resources :encryption_passphrases 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| %> <p> <%= password_field_tag :encryption_passphrase %> </p> <p> <%= submit_tag "Create" %> </p> <% end %> This results in the following html: <form action="http://localhost:3000/encryption_passphrases" method="post"><div style="margin:0;padding:0"><input name="authenticity_token" type="hidden" value="a938464567fec5b2c2d90421275beb83776a2ae7" /></div> <p> <input id="encryption_passphrase" name="encryption_passphrase" type="password" /> </p> <p> <input name="commit" type="submit" value="Create" /> </p> </form> When I hit the Create button, I get this error on the resulting page: "Unknown action 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? Thanks, Jonathan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---