I'm using the form tag, and I want the result to be nomething like this:
<form action="controller/action" id="myID">
I currently have this
<% form_tag :action => '', :id=>"relative_date_filter" do |f| %>
which generates this:
<form action="/controller/relative_date_filter" method="post">
EDIT:
I currently get this error:
compile error
/app/views/controller/filters/_relative_time.html.erb:1: syntax error, unexpected tASSOC, expecting '}'
...e=true ; form_tag {:action => ''}, {:id => "relative_date_f...
^
/app/views/controller/filters/_relative_time.html.erb:1: syntax error, unexpected ',', expecting kEND
...e ; form_tag {:action => ''}, {:id => "relative_date_filter...
^
/app/views/controller/filters/_relative_time.html.erb:1: syntax error, unexpected kDO, expecting kEND
... => "relative_date_filter"} do ; @output_buffer.concat "\n ...
^
/app/views/controller/filters/_relative_time.html.erb:14: syntax error, unexpected kENSURE, expecting $end
Extracted source (around line #1):
1: <% form_tag {:action => ''}, {:id => "relative_date_filter"} do %>
Here, what is weird is that there is no line 14. its the end of the file. I added a return, and it changed to line 15. My previous code did cause the syntax error.