The docs state:
form_tag(url_for_options = {}, options = {},
*parameters_for_url)
So I thought this would work:
<%= form_tag {:controller=>‘member’,:action =>
‘validate_login’} %>
But that gives this error:
compile error
./app/views/member/login.rhtml:2: syntax error
_erbout.concat(( form_tag
{:controller=>‘member’,:action => ‘validate_login’}
).to_s); _erbout.concat “\r\n”
^
./app/views/member/login.rhtml:2: syntax error
_erbout.concat(( form_tag
{:controller=>‘member’,:action => ‘validate_login’}
).to_s); _erbout.concat “\r\n”
However, both of these work:
<%= form_tag ({:controller=>‘member’,:action =>
‘validate_login’}) %>
<%= form_tag :controller=>‘member’,:action =>
‘validate_login’ %>
I’m confused - the docs lead me to think that the
url_for_options need to be in a hash, lest they get
confused with the other params.
csn
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs