Topic: Beyond The Type

Has anyone worked on this tutorial?

http://www.beyondthetype.com/rails/2006 … y-on-rails

because I got stuck at the first hurdle, if anyone can help me that would be great.

Re: Beyond The Type

How far did you get exactly?

Re: Beyond The Type

As far as running script/console and it not returning what was expected.

Re: Beyond The Type

What is it returning ?

AJ

Re: Beyond The Type

http://www.nicktoye.co.uk/filebrowser/i … &fid=1

Re: Beyond The Type

The tut was probably written using a *nix or OSX box.  Since you're on windows you'll need to run 'ruby script\console'.

Re: Beyond The Type

Those warnings can probably be safely ignored - at least for now.  All they are saying is that the xml-simple library has been loaded twice - which is much better than not at all :-)

What happens when you try the next step?

Re: Beyond The Type

Well i'm not too sure what to do with this step:

session = Basecamp.new('beyondthetype.updatelog.com', 'username', 'password')
puts "projects: #{session.projects.length}"
projects: 1

Re: Beyond The Type

after you have the console running you should type in

session = Basecamp.new('beyondthetype.updatelog.com', 'username', 'password')
puts "projects: #{session.projects.length}"

and it should print out

projects: 1

Re: Beyond The Type

Well it does this:

http://www.nicktoye.co.uk/filebrowser/i … &fid=1

Re: Beyond The Type

NickToye:
Try doing those lines one at a time. 'puts' is a command that's like 'print' or 'echo' or 'put something on the screen'.  It should be executed on its own line.

Re: Beyond The Type

Ok, something else is up.

http://www.nicktoye.co.uk/filebrowser/i … &fid=1

It seems to be a socket error

Re: Beyond The Type

Is your firewall (like Norton) blocking the connection out from your computer?

Tech Cheat Sheets for Ruby, Rails, and much more!

Re: Beyond The Type

I disabled Norton, but get this:

RuntimeError: Unauthorised(401)

smile