rubyでフォームを作成したいのですが、エラーが表示されてしまいます。
エラー
:/Ruby/file/:1: syntax error, unexpected '<' <% form_tag :action => "unko", :id => 1234 do %> ^ :/Ruby/file/:1: syntax error, unexpected ':', expecting end-of-input <% form_tag :action => "unko", :id => 1234 do %> ^
コード
ruby
1<% form_tag :action => "unko", :id => 1234 do %> 2 3 <%= label :post, :author %>: 4 <%= text_field :post, :author %> 5 <%= error_messages_on :post, :author %><br /> 6 7 <%= label :post, :accept %>: 8 <%= check_box :post, :accept %> 9 <%= error_messages_on :post, :accept %><br /> 10 11 <%= submit_tag "post!!" %> 12<% end %> 13
回答依頼を頂きましたがrubyは知らないです。すいません。
回答2件
あなたの回答
tips
プレビュー