我想讓裏面的 '後視圖'的form_for問題
一個 '註釋' 的形式,但這種幫助不能工作
<%= form_for([@post, @comment]) do |f| %>
...
<% end %>
RVM 1.9.2 軌3.0.3
編輯1: 錯誤:
undefined method `model_name' for NilClass:Class
編輯2提取的源(左右線#23):
20: <% end %>
21: </ul>
22:
23: <%= form_for [@list,@item] do |form| %>
24:
25: <%= form.text_field :due %>
26: <p><%= form.text_field :title %>
應用程序跟蹤
app/views/lists/show.html.erb:23:in `_app_views_lists_show_html_erb___3300490552675426158_2162821280_4216612080991561324'
app/controllers/lists_controller.rb:22:in `show'
信息名單| has_many項目。 item | belongs_to的列表
你得到什麼樣的錯誤? – Trip 2010-12-15 05:00:44
請你給我們更多的堆棧跟蹤。 – 2010-12-15 06:14:01