Hi

FYI, there is only one way to get a multipart form to work:

- form_tag url_for(:action => 'create_project', :id =>
params[:id]), :multipart => true do

results in

<form action="/home/create_project/3" enctype="multipart/form-data"
method="post">

The recommendation I found in the archive won't work:

- form_tag {:action => 'create_project'}, :id =>
params[:id], :multipart => true do

(eval):556:in `compile': compile error
(eval):141: syntax error, unexpected tASSOC, expecting '}'
 form_tag {:action => 'create_project'}, :id =>
params[:id], :multipart => true do
                     ^

doing it without any {} doesn't render enc_type properly:

- form_tag :action => 'create_project', :id => params[:id], :multipart
=> true do

<form action="/home/create_project/3?multipart=true" method="post">

Brad


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to