Ahh, that makes sense. See I told you I was a Ruby noob! Thanks for the response!
Dustin On Thu, Mar 17, 2011 at 4:06 AM, Marius Mårnes Mathiesen < [email protected]> wrote: > On Wed, Mar 16, 2011 at 7:29 PM, Dustin S. <[email protected]> wrote: > >> Hi, >> >> I was wondering if someone could help me update the Ruby code to >> change the favorite notificatons to display your "Human Name" instead >> of the Login Name. >> >> I tried tweaking app/model/favorites.rb >> Mailer.deliver_favorite_notification to use self.user.human_name but >> had no luck. My Ruby knowledge is very limited. Is this a difficult >> change? >> > > Dustin, > The Mailer class expects a User object, not a string (which human_name > returns). You should be able to achieve what you want by changing the mailer > templates (app/views/mailer/favorite_notification.html.erb) to use > "@user.fullname" instead of "@user.login". > > Cheers, > - Marius > > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]
