Creating a website with a profile that can be used to log into another website (like gmail/ facebook log in) [closed]

Where would I start doing this type of project? I am new to programming and really I have only just started learning to use the "gsub" command in Komodo / ruby on rails.

I have made part of a sample website with a box for input, however it does not do anything.

Is there a description in any textbooks or instructional video?