2016-08-13 4 views
1

私はhamlを初めて使用しています。これは初めて使用しています。タグを作成するフォームがHamlにあります。SyntaxError at/images/new構文エラー、予期しないtSTRING_DEND、 ')'

= f.text_area :tag_list, label: "Tags (optional)", help: raw("All tags .<br>We do this to ensure..."), input_html:{data:{placeholder: "Enter tags", saved: f.object.tags.map{|t|{id: t.name, name:t.name}}.to_json}, url: autocomplete_tags_path}, class: 'tagselect'} 

あなたは助けてください。私は、エラーをしている生成

Syntax error: unexpected tString_DEND expecting ')'. 
unexpected tIDENTIFIER, expecting ')' 
haml_temp = f.content_tag :div, "", class: "container_button" do 

ラインを取得していますか?ありがとう

答えて

1

投稿したf.textarea行には、最後に}があります。無関係なコードはここにあります}

= f.text_area :tag_list, label: "Tags (optional)", help: raw("All tags .<br>We do this to ensure..."), input_html:{data:{placeholder: "Enter tags", saved: f.object.tags.map{|t|{id: t.name, name:t.name}}.to_json}, url: autocomplete_tags_path}, class: 'tagselect' 
関連する問題