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