How do I specify the Controller and Action in a form submission? I am trying to use a \'Clients\' Controller to create an Account and an associated Person (\'Client\').
You have to say this in routes.rb
resources :clients
In the form, specify the url as clients_path with method as post:
<%= form_for @account, :url => clients_path, :html => {:method => :post} do |f| %>
---
<% end
For more information how rails handles REST urls: http://microformats.org/wiki/rest/urls