0
我正在用Thimothy Fisher的「RoR Bible」來研究Ruby on Rails。但其中一個例子不起作用。它的代碼 - http://pastebin.com/gtjLsdt0 的錯誤是:NoMethodError
在Contact#new
其中4號線提出:RoR - 未定義的方法`合併'
undefined method `merge' for "first_name":String
這是我的contact_controller。我只是重新輸入例子的代碼,有沒有關於合併
class ContactController < ApplicationController
def index
@contacts = Contact.find(:all);
end
def show
end
def new
@contact = Contact.new;
end
def create
end
def update
end
end
什麼錯什麼話?
查看更新.... – davidb 2011-12-20 13:45:21