我有一个名为 RegistrationController 的控制器。路由定义如下:
get "registration/index"
get "registration/create"
get "registration/new"
new.erb 包含以下行:
<%= form_for :registration, url:registration/create do |f| %>
上面的行不起作用并给出以下错误:
undefined local variable or method `registration' for #<#<Class:0x007fd382a810d0>:0x007fd38296dd38>