Re: [Rails] How to comment @user?

2015-06-07 Thread Walter Lee Davis
On Jun 6, 2015, at 3:11 PM, Elizabeth McGurty 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 #{@u

Re: [Rails] How to comment @user?

2015-06-06 Thread Colin Law
On 6 June 2015 at 18:42, Anthony Galli wrote: > I haven't found guidance on this question anywhere, which I supposed > would be a common one: > > How can I go about creating a system where if I put the @symbol in front > of a user name in a comment that that user would receive a notification? > >

[Rails] How to comment @user?

2015-06-06 Thread Anthony Galli
I haven't found guidance on this question anywhere, which I supposed would be a common one: How can I go about creating a system where if I put the @symbol in front of a user name in a comment that that user would receive a notification? I have my MVC's for comments, notifications, and users. Or