2012-10-31 88 views
1

我註釋掉的has_many,但與同導出頁面有許多後,重新啓動服務器導軌如何禁用rails管理員的has_many_association?

config.model 'User' do 

    # # You can copy this to a 'rails_admin do ... end' block inside your user.rb model definition 

    # # Found associations: 

     # configure :canvases, :has_many_association 
     # configure :level, :has_many_association 
     # configure :tags, :has_many_association 

    # # Found columns: 

     configure :id, :integer 
     configure :name, :string 
     configure :email, :string 
     configure :raw_info, :serialized 
     configure :created_at, :datetime 
     configure :updated_at, :datetime 

回答

0

其實,你應該刪除這些註釋,執行特定的配置。

試試這個:

configure :canvases, :has_many_association do hide end 
configure :level, :has_many_association do hide end 
configure :tags, :has_many_association do hide end 
相關問題