尝试在 Ruby on Rails 应用程序中使用 HAML 创建文件上传表单。代码非常小而且直截了当:
= form_tag player_salary_path, :multipart=>true
= file_field_tag :file
= submit_tag "Import"
错误:
syntax error, unexpected keyword_ensure, expecting end-of-input
尝试在 Ruby on Rails 应用程序中使用 HAML 创建文件上传表单。代码非常小而且直截了当:
= form_tag player_salary_path, :multipart=>true
= file_field_tag :file
= submit_tag "Import"
错误:
syntax error, unexpected keyword_ensure, expecting end-of-input