0
저는 Michael Hartl Tutorial과 협력하고 있습니다.레일 튜토리얼, 7 장 정의되지 않은 메소드 "model_name"
NoMethodError in User#new
Showing C:/rails_project/sample_app/app/views/user/new.html.erb where line #6 raised:
undefined method `model_name' for NilClass:Class
Extracted source (around line #6):
3:
4: <div class="row">
5: <div class="span6 offset3">
6: <%= form_for(@user) do |f| %>
7:
8: <%= f.label :name %>
9: <%= f.text_field :name %>
Rails.root: C:/rails_project/sample_app
Application Trace | Framework Trace | Full Trace
app/views/user/new.html.erb:6:in `_app_views_user_new_html_erb___578921578_24443340'
어떤 아이디어를 가지고 : 제 7 장에서 나는이 메시지를 받아 봐 내가
http://localhost:3000/signup
을 서버를 시작하고 실행할 때 내가 보여줍니다 문제를 발견했습니다?
정의되지 않은 변수를 사용하는 경우 이러한 유형의 오류가 올
을한다. 고맙습니다! – szatan