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

10.41 Muhamad Akbar Bin Widayat 0 Comments

That is error at object table

look my sintak error

Add Mahasiswa

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

<% end %>   

change @person to @mahasiswa


0 komentar:

terimakasih komentarnya