friendly_id(4.0.0.beta12)の宝石をSTIモデルで正しく動作させるための設定方法については、かなり不便です。 Toyota.create!(name: "test")
Ford.create!(name: "test")
生じる誤差がある:問題はそのfriendly_idの選択ルックスです (0.1ms) BEGIN
Ford Load (0.2ms) SEL
この私のPlan.rbは、次のようになります。 class Plan < ActiveRecord::Base
has_many :users
has_friendly_id :plan, :use_slug => true
end
User.rb class User < ActiveRecord::Base
#There is other stuff in h