1

私は has_many をコメントアウトしましたが、レールサーバーを再起動した後、同じエクスポートページに多数あります

 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 
4

1 に答える 1

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  
于 2012-12-13T04:13:21.707 に答える