why this is not haml valid syntax
= form_tag(media_path(place_id: @place) , :multipart => true) do
= label_tag :image , "Place image"
= file_field_tag :image
= submit_tag "submit new comment"
Exception on line 46: compile error
/…/show.html.haml:46: syntax error, unexpected ‘:’, expecting ‘)’
… form_tag(media_path(place_id: @place) , :multipart => true)…
^
Use –trace for backtrace.
Use –trace for backtrace.
try :place_id => @place.id
Error may be also if you use @place instead @place.id