Setting default user model attribute displayed when creating new message
hi There
How can I specify another attribute which is displayed to an end user when sending a message to someone. It seems to show their email address.. I want it to show their username... I have unpacked the gem and can edit anything I need to! Thank you
If I understand you correctly, there is a config param called user_name (Inboxes::config.user_name).
In your app's config you can write something like config.inboxes.user_name = "nickname" and it will use the nickname attribute to display the user.
Thanks. That worked. One last question, is there a quick way to pass in a user object and make inboxes only pull in one user, instead of being able to select a user to message. So it is more like a private messaging system? Thanks.
There is no shortcut for that, but you can create a Discussion object with only one speaker from the controller.