Hi I am working on a event calendar app that I would like a user to be
able to save an event they selected to an online calendar such as Google
Calendar. I have a link to Google C. a user can click to open it
in a new tab once the user selected an event. I don’t need to save user
email info so the best approach I think is to wait for the user to log
into the Google app and then my code adds the selected event into the
I guess I need to have a loop (with a timeout) in an action checking to
see if the user has logged in. My idea is to try to get the url of the
logged in page using Mechanize like this: page =
agent.get(“https://www.google.com/calendar/render”). This is perhaps a
dumb idea. Or do I really need to capture the login event somehow.
What should I do to accomplish this goal? What tool (gem) I should use
to do this? Please put me on the right track with some guidelines or
link to resources, thanks!