Re: [Rails] notifications

2017-05-29 Thread Joe Guerra
ok, the context is I have this table to update users with small notifications messages. Rails scaffold generated a userid and msg form. Now, when I need to send a user a message I look them up in the table, grab their id and then put the id in the field along with a message. Thanks, Joe On

Re: [Rails] notifications

2017-05-29 Thread Walter Lee Davis
> On May 29, 2017, at 1:34 PM, Joe Guerra wrote: > > Hi, I have this notifications table which basically has a userid and a msg > (notification). > > What should I do with the userid? I would like to look up the user by name > and stick the id in the table. > > Is

[Rails] notifications

2017-05-29 Thread Joe Guerra
Hi, I have this notifications table which basically has a userid and a msg (notification). What should I do with the userid? I would like to look up the user by name and stick the id in the table. Is that normally what you'd do in this case? A dropdown list would be too large. Thanks,

Re: [Rails] notifications (or flash messages) in an api application

2012-03-21 Thread Dave Aronson
On Sun, Mar 11, 2012 at 05:14, Lupu Alexandru Emil gang.al...@gmail.com wrote: if false == money_requirement?  self.add_api_error You do not have enough money end Or should that be Money enough, you have not. Buy, or buy not, there is no try!? :-) Having Yodified a lot of my checks in the

[Rails] notifications (or flash messages) in an api application

2012-03-11 Thread Lupu Alexandru Emil
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! As a noob in rails, i am having a problem on how to find a decent and straightforward notifications system for my application. Being a Api like application (talking with the client is made using JSON / later on XML as well), i have a