Form submission in rails 3 <p>I decided to start a little project in rails 3 and I am a little bit stuck on a form... Where can I specified the f.submit action should go to a special controller / action ?</p> <p>The code in the form is:</p> <pre><code>&lt;%= form_for @user, :url =&gt; { :action =&gt; "login" } do |f| %&gt; &lt;div class="field"&gt; &lt;%= f.text_field :email %&gt;&lt;br /&gt; &lt;%= f.text_field :password %&gt; &lt;/div&gt; &lt;div class="actions"&gt; &lt;%= f.submit %&gt; &lt;/div&gt; &lt;% end %&gt; </code></pre> <p>User is defined as @user = User.new in "index" method of "home_controller".</p> <p>but I have the error:</p> <pre><code>No route matches {:controller=&gt;"home", :action=&gt;"login"} </code></pre> <p>as soon as I run <a href="http://0.0.0.0:3000" rel="nofollow">http://0.0.0.0:3000</a></p> <p>I am very sorry for this newbee question but I cannot find the routing details (I worked a little bit with rails a couple of years ago but...)</p> <p>Thanks, Luc</p>