cloud9上でsimple_formをインストールしたあとにエラーを吐きます
手順としてはリンクの参考サイトに沿って作業し、「$ rails g bootstrap:themed Users」したあとに、フォームから新規投稿や、編集をしようとするとエラーがでてきます。
何が原因のエラーでしょうか?
undefined local variable or method `object' for #<#<Class:0x00000005118ff0>:0x007f368bdfdc98> Did you mean? object_id Extracted source (around line #3): 1<%= simple_form_for @item, :html => { :class => 'form-horizontal' } do |f| %> 2 <%= f.input :name %> 3 <%= error_span(@item[:name]) %> 4 <%= f.input :body %> 5 <%= error_span(@item[:body]) %> 6 <%= f.input :image %>
あなたの回答
tips
プレビュー