Yeah... check out this line:
On 12/11/2008, at 3:18 PM, e deleflie wrote:
headers['Authorization'] = 'Basic ' +
Base64.encode64("[EMAIL PROTECTED]()}:[EMAIL PROTECTED]()}").chop
Typobug. You missed a #, so your server would have been seeing
something along the lines of:
Authorization: Basic eddie:[EMAIL PROTECTED]()}\r\n
Also, keep in mind that in ruby, objects cannot expose properties,
only methods. attr_accessor and friends only add methods. So,
@pword.text is generally more acceptable and readable than
@pword.text() with it's redundant characters. I sometimes get a little
muddled too from spending time in languages like javascript where the
parenthesis are meaningful. :)
Also, ruby tends to get a bit confused by this syntax: somemethod arg,
arg, arg do |a, b, c| ... end. It copes well with somemethod do ...
end, just not so well when there are some arguments. This is a
situation where sticking your arguments in some parenthesis would be
helpful perhaps. :)