I'm trying out OAuth for twitter api authentication and ran into a brick wall when my code spits out the message:
(instance of OAuth::Consumer needs to have method `marshal_load')
My code:
@consumer=OAuth::Consumer.new( "token","secret", {
:site=>"http://mysite.com/"
})
@[email protected]_request_token
session[:request_token]=@request_token.token
session[:request_token_secret]=@request_token.secret
redirect_to @request_token.authorize_url
Errors are in the session assignment part. Clearing the session store doesn't correct the problem.
rake tmp:clear
Code works perfectly in irb but running it app-wise doesn't work. What could be the problem and solution to this?
Thanks!