I have a form:
%form{:action:method => "post"}
%fieldset
%label{:for => "title"} Title:
%input{:name => "title", :type => "text", :value => ""}/
%label{:for => "notes"} Notes:
%input{:name => "notes", :type => "text", :value => ""}/
%a.finish{:href => "/rotas", :method => "post"} Finish!
However, the link does not seem to want to work - maybe I am missing something basic in Haml, or in Rails.
I have a :resource rotas in my routes.rb and my controller has a def create method.
Any help is appreciated! Thanks!
btw. I generated using scaffold - and it seems that the same form is used for edit a model and for a creation. How does it know whether to do a POST or a PUT?