I'm trying to display an association attribute to read only to ensure it can't be edited while my model is in edit mode.
My models for User and Account are defined as show here:
class User < ActiveRecord::Base
belongs_to :account, class_name: "Account"
...
end
class Account < ActiveRecord::Base
has_many :users
...
end
Below is the code I have in place in my rails_admin.rb initializer, where the :account is the association on my User model:
config.model User do
configure :account do
read_only true
end
end
When read_only false is configued, things look as I would expect in edit mode of the User:

However, when read_only true is turned on as show in the above code snippet, I get the following while in edit mode of the User:

Any help is appreciated. Currently running Rails 4.2.5.1, Ruby 2.3.1, Rails Admin 0.8.1
I'm trying to display an association attribute to read only to ensure it can't be edited while my model is in edit mode.
My models for User and Account are defined as show here:
Below is the code I have in place in my rails_admin.rb initializer, where the
:accountis the association on myUsermodel:When

read_only falseis configued, things look as I would expect in edit mode of theUser:However, when

read_only trueis turned on as show in the above code snippet, I get the following while in edit mode of theUser:Any help is appreciated. Currently running Rails 4.2.5.1, Ruby 2.3.1, Rails Admin 0.8.1