I notice that RailsAdmin has an object_label method, but it’s unclear how to use it:
config.model Entity do
object_label do
# ???
end
end
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Extracted from the documentation
If you just want to use an attribute from the model, you can just pass it as the method to be called… like
:namewould return theobject.nameas the label.