我收到以下错误
param not found: customer
这是我的 auth_controller
def create
@customer = Customer.new(customer_params)
if @customer.save
flash[:success] = 'Success';
else
flash[:error] = 'Error'
end
end
private
def customer_params
params.require(:customer).permit(:username,:email,:password)
end
这是我的表格
<%= form_for :customer, url: {action: :create} do |f| %>
<%= f.text_field :username,placeholder: 'Username' %>
<%= f.password_field :password,placeholder: 'Password' %>
<%= f.email_field :email,placeholder: 'Email' %>
<input type="submit" value="Register" />
我该如何解决这个错误