<% form_for :user, @user, :url => users_path(:from => 'landing'), :id => 'sign_up_form', :html => {:method => :create} do |f| -%>
谁能告诉我为什么 ID 不起作用?
最佳答案
它应该在 :html 选项内,而不是与 :url 在同一级别。
关于ruby-on-rails - RoR - 为什么这个 ID 不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2812991/