Has anyone worked on this tutorial?
http://www.beyondthetype.com/rails/2...-ruby-on-rails
because I got stuck at the first hurdle, if anyone can help me that would be great.
| SitePoint Sponsor |




Has anyone worked on this tutorial?
http://www.beyondthetype.com/rails/2...-ruby-on-rails
because I got stuck at the first hurdle, if anyone can help me that would be great.
1) are you on windows or linux?
2) do you have rails and ruby installed and added to your path? <what does ri or ruby or irb produce on a console>
3) how do I do this? That depends on the question 1) and im not going to answer both at once.




1) I am on windows
2) As for the console, I navigated to rails directory and then basecamp directory ran ruby script/console, and the screenshot attached is the result.
Hope this can help.




Did you do gem install xml-simple ?![]()




It wouldn't let me, do I install it withing the rails/basecamp directory?
It seems to be failing to load the basecamp library - is basecamp.rb in your lib dir?




It is in there
But I had it as basecamp.rb.rb
Could that be the problem?




yeahOriginally Posted by NickToye
![]()




Ok, I did a gem install xml-simple and it said this:
local gem file not found
Attempting remote installation of xml-simple
Error: While executing gem ... (socket area)
getaddrinfo: no address associated with hostname.




Turns out it was Norton AV that was causing problems, so I disabled that and it worked.




Now it is saying that sudo is not a recognised command




Sudo is linux. Which script is causing the error?




Well i'm running through the tutorial linked at the start of this thread.
Then when I run the script/console
I don't get what is expected in the tutorial.
This might not be that helpful, but if you could get hold of a Linux machine (or even better a Mac) to develop on you'll appreciate it. Developing Rails apps on Windows is horrible - its largely inferior console/cmd line doesn't help.




Luke is right, but getting a Nix box just to develop a rails app is a bit of a pain. Personally I think Windows can do the job, the worst thing is the lack of a quality, lightweight IDE like textmate for the mac
Try without the sudo i.e.
gem install xml-simple
If that doesn't work try:
ruby gem install xml-simple




the gem install worked
But when I run the script/console it doesn't show what is in the tut.
I do agree about Mac's and its something that I am looking to do within the next month or so. Its not just for Ruby its for all web app, speed of processor and because they are just that cool!




Ok, I started again, I created the basecamp application, and then installed the gem simple-xml from within the rails directory not the basecamp directory.
It seemed to install
I have attached a screenshot of what happens when I run the script/console.




Those are just warnings. I imagine things should still work fine.




Yeah,
But this isn't showing:
session = Basecamp.new('beyondthetype.updatelog.com', 'username', 'password')
puts "projects: #{session.projects.length}"
projects: 1




I'm a noob myself but would imagine you are supposed to actually type that into the command lineputs "projects: #{session.projects.length}" is saying output the number of items in the projects array, hence the next line should be automatic....i.e. it will display projects: 1 (or however many projects you have)




nope, I don't think so
Bookmarks