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 Calendar 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
calendar.

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!
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to