javascript - Display notification messages to users at specific intervals (Ruby on Rails) -


I am working on an application with a basic authentication functionality when a user registers, I have a JavaScript lightbox I would like to display the message in which the application was brief introduction. Also, when a user logs in after a set time span (1 week, 1 month, etc.), then I would like to display the information. I'm not sure that the flash notifications will be sufficient because I'm planning to have a little complex HTML in messages, such as Form / Link / etc. I can think of many ways to accomplish this, but none of them looks brilliant and strong.

Any thoughts?

You can just keep track of the count of logs and when the first log in is done then just lightbox Activate. / P>

  if current_user.sign_in_acount == 1 # reverse lightbox render end if current_user.created_at & gt; 1.week.ago & amp; Amp; Not_notified? # Render Notification Lightbox End   

Actually the box will not resolve or become anything and since there will be two different types of scenarios for your message (time vs. login number) To do this, you can do for very little time.

Comments