标签: ruby-on-rails ruby-on-rails-4.2
我有:
class Location < ActiveRecord::Base has_many :mobile_menus, class_name: "Menu", ~> { where is_instore_enabled: true }
但是我收到了错误:
location.rb:52:语法错误,意外&#39;&gt;&#39; (的SyntaxError)
该运营商到哪里。我究竟做错了什么?是class_name吗?