On Jun 6, 2015, at 3:11 PM, Elizabeth McGurty <
emcg...@gmail.com> wrote:
> What does @user contain? When you say in 'front of' do you mean to proceed as a word or to be concatenated?
>
> Depending on the context, if you are building a string, eg, wrapped with " ", I find #{} really useful: "Some text #{@user(.prehapsSomeFieldValue)} and more user name comment".
>
> Sending a Notification? Check how and what you are sending on .deliver (old: deliver_), presumably a model object, then check your notifier model. Then check your html.erb corresponding to the Notifier def name.
>
> Liz
>
>
I think the OP was interested in recognizing the combination of the @ character and the user name or handle within a run of text, and parse it out of that as a "mention", so if someone put @emggurty2 in a reply to this list, you would get a "ping" of some sort.
Anthony, where would these @names appear, in what context?
Walter
> To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/931b4ef9-9fb0-4300-ad6e-eb9135254689%40googlegroups.com.