I am using Ruby on Rails with Active Admin and I have one model where there is relation to user model. Everything works, just instead of user email or something, it shows user object in select box when creating new object. For example:
<select id="playground_open_time_user_id" name="playground_open_time[user_id]">
<option value=""></option>
<option value="15">#<User:0x7fb553945628></option>
<option value="44">#<User:0x7fb553943508></option>
<option value="51">#<User:0x7fb553942ef0></option>
</select>
How and where could I change that it would show email or firstname + lastname instead?
Have you try adding the method “name” to your model, something like :