ruby on rails undefined local variable or method

10.52 Muhamad Akbar Bin Widayat 0 Comments

Menemukan yang seperti ini:

NameError in Mahasiswas#index

Showing app/views/layouts/mahasiswas.html.erb where line #11 raised:
 
undefined local variable or method `akun_mahasiswas_path' for # 
 
8:       

9:       
10:       
11: <%= link_to "Akun", akun_mahasiswas_path -%> | 12: <%= link_to "Logout", logout_path -%> 13:
14:

Langkahnya
1. Edit file app/views/layouts/mahasiswas.html.erb
2. baris 11 ganti dengan  <%= link_to "Akun", akun_mahasiswa_path -%>
3. Reload browser 

0 komentar:

terimakasih komentarnya