我正在嘗試爲我的rails博客應用程序配置聲明授權。根據需要完成所有工作後,我開始使用rails來啓動服務器。我遇到了以下錯誤。 rails s
/var/lib/gems/1.8/gems/activerecord-3.2.9/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined local variab
我試圖使用授權聲明,在使用查詢重寫功能模型級過濾下來的HTML選擇這樣的選擇: 型號: class TreatmentClinic < ActiveRecord::Base
def self.filtered_by_user_context
with_permissions_to(:read)
end
end
查看(新動作): <%= form_for(@s