Hi guys, I''m not sure how to start doing this, and I really hope I don''t sound very vague. Is there any function/helper that can be used to send a string containing a message to a user to display upon his (gender neutral) next login? I''m currently using AuthLogic, and I''m not sure if there''s any other way to do this other than storing that message into the database and then retrieving it. (since its only gonna be displayed once). I think the closest way for me to describe it, is like a flash message but for next login. Thanks again. Warmest regards, David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''m not aware of any features that would do that automatically. I would think your best bet would be to just store those messages for next time in the database. Hope that helps, Jim http://www.thepeoplesfeed.com/ On Sat, Oct 3, 2009 at 1:12 PM, David Chua <zhchua-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi guys, > > I''m not sure how to start doing this, and I really hope I don''t sound very > vague. > > Is there any function/helper that can be used to send a string containing a > message to a user to display upon his (gender neutral) next login? I''m > currently using AuthLogic, and I''m not sure if there''s any other way to do > this other than storing that message into the database and then retrieving > it. (since its only gonna be displayed once). > > I think the closest way for me to describe it, is like a flash message but > for next login. > > Thanks again. > > Warmest regards, > David > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
2009/10/3 David Chua <zhchua-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> Hi guys, > > I''m not sure how to start doing this, and I really hope I don''t sound very > vague. > > Is there any function/helper that can be used to send a string containing a > message to a user to display upon his (gender neutral) next login? I''m > currently using AuthLogic, and I''m not sure if there''s any other way to do > this other than storing that message into the database and then retrieving > it. (since its only gonna be displayed once). > > I think the closest way for me to describe it, is like a flash message but > for next login.You are going to have to store it somewhere, assuming that you cannot determine it in some other way at the next login. The db seems like the obvious place. Presumably in the user table if it is on a per user basis. Alternatively, if it is an usual situation you could have a messages table where Message belongs_to user, or has_many users if the same message goes to a number of users. Colin