ruby on rails NoMethodError in User#new

10.58 Muhamad Akbar Bin Widayat 0 Comments

Showing app/views/mahasiswa/new.html.erb where line #3 raised:

undefined method `mahasiswas_path' for # 

Extracted source (around line #3):
1: Add Mahasiswa
2: 
3: <% form_for (@mahasiswa) do |f| %> 
4:

5:  
6: <%= f.text_field :nama %>
 
TRY..
 
<% form_for(@mahasiswa) do |f| %>
 
Should be
 
<% form_for(:mahasiswa) do |f| %>
 
 
good luck 

0 komentar:

terimakasih komentarnya