ruby on rails RuntimeError in User#new Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id

That is error at object table

look my sintak error


Add Mahasiswa



<% form_for @person do |f| %>
 
   
    <%= f.text_field :nama %>
 
 
 
   

<% end %>   
TRY

change @person to @mahasiswa

thank

Comments

Popular posts from this blog

Riset Kebutuhan & Jasa Pembuatan Website UMKM (Riset Lapangan Jakarta Barat)

5 Nilai Inti (GCG) Wajib Sebelum Merancang Produk Digital

Kesalahan Pindah Blogspot ke Domain Pribadi Berujung Domain Blogspot Lenyap