2012-10-31 2 views
1

는 내가 has_many을 주석, 아직와 같은 수출 페이지레일즈 admin에 대해 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 
:

이 시도

관련 문제