This application allows a user to authenticate himself via OAuth against Soundcloud. Once the user is authorized, he can post a URL of a sound file, the webapp will then download this file and upload the track to the users Soundcloud account.
Have a look at the controllers, to find out how it works. login_controller.rb is doing all the OAuth login stuff, while home_controller.rb handles the track creation. You can find the source repository here.