表題のエラーが発生しています。
何卒ご教授のほどよろしくお願いいたします。
現状コード:
ruby
1#Works.controller 2def new 3 @work = Work.new 4end 5def create 6 Work.create(work_params) 7 redirect_to :action => "index" 8end 9def work_params 10 params.require(:work).permit(:title, :company_introduction, :requirements, :language, place:[] ) 11end 12 13 14#new.html.erb 15<%= form_for @work do |f| %> 16 <%= f.label :title, "タイトル" %> 17 <%= f.text_field :title %> 18 <%= f.label :company_introduction, "アイデア説明" %> 19 <%= f.text_area :company_introduction %> 20 <%= f.label :requirements, "募集要項" %> 21 <%= f.text_area :requirements %> 22 <%= f.label :place, "渋谷" %> 23 <%= f.check_box :place,{multiple: true},5,nil%> 24 <%= f.label :place, "新宿" %> 25 <%= f.check_box :place, {muliple: true},3,nil %> 26 <%= f.label :place, "池袋" %> 27 <%= f.check_box :place,{multiple: true},10,nil %> 28 <%= f.label :language, "Ruby" %> 29 <%= f.check_box :language %> 30 <%= f.label :language, "Pyhton" %> 31 <%= f.check_box :language %> 32 <%= f.submit "投稿" %> 33 34<% end %>
new.htmlのチェックボックスを全選択し、投稿した時に表題のエラーが出てきます。
何卒よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。