I'm not having success with the following code, I get a "Sorry, page doesn't exist!" webpage. I am using the OAuth v0.4.1 gem. Your help and guidance is very appreciated, thanks!

If I type the following out in IRB, it seems to work, but of course I can't redirect from the shell.

class HomeController < ApplicationController

  def index
     @consumer = OAuth::Consumer.new( "bLXXXXXXXXI9szbXTJQnXKA",
       { :site=>"https://api.twitter.com/oauth/request_token"; } )


      session[:consumer]      = @consumer
      session[:request_token] = @request_token

      redirect_to @request_token.authorize_url


Kind Regards,
Rajinder Yadav

Reply via email to