SitePoint Sponsor |
|
User Tag List
Results 1 to 18 of 18
-
Mar 16, 2007, 06:03 #1
- Join Date
- Mar 2007
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
HELP ME! too many errors in this book for a newbie..
hi folks, dear sitepoint-team, mr. lenz,
i bought your book "build your own ruby on rails web applications", and at first it was a great read, fun and understandable.
but to me as a newcomer to the mac-world, and especially to the unix-world, there are far too many mistakes / errors inside!!
it is not the code itself, it is the steps i am to follow with the terminals, consoles and the installation processes that are described in the book.
up to page 29 everything went flawless, but then came the mysql-installation, and although the installer went fine, the following steps that were supposed to work as described in the book, failed silently for me..
no explanation why.. i HATE it.. sorry..
but i feel left alone!
i mashed some infos from the mysql-website in (added another path to the .profile file), so i finally got the mysql-prompt working, but now i can not start the ruby-console, because i get an error saying that there is no rubygem or something like that!?
then i re-installed/ re-setup rubygems 0.9.0 as described on page 27, which also seems very strange to me!? do i have to do this everytime i reboot my mac??
now there is another error thrown at me:
Code:ruby script/console Cannot find gem for Rails ~>1.2.3.0: Install the missing gem with 'gem install -v=1.2.3 rails', or change environment.rb to define RAILS_GEM_VERSION with your desired version.
Please, pretty please explain exactly and step by step, how to get all this mess working on a intel-mac with os x 10.4.8!
i really want to learn rails, but these errors bug the hell out of me......
thank you very much in advance!
-
Mar 16, 2007, 06:28 #2
- Join Date
- Mar 2007
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
UPDATE:
seems like i had to redo all the steps to install ruby / rails / readline / rubygems on my mac. now, when i type "ruby -v" in my terminal, i always get "ruby 1.8.2 (2004-12-25)" in return.
i can not get 1.8.4 to install again!?
why is that now?? please, how can i uninstall everything and start from scratch?
-
Mar 16, 2007, 06:59 #3
Forget what the book says for the Mac installation and use Macports instead. Note: you'll have to have Apple's developer tools installed. You should be able to find them on one of the DVDs that came with your Mac or your copy of OS X.
-
Mar 18, 2007, 02:26 #4
- Join Date
- Apr 2003
- Location
- Ft. Lauderdale, FL
- Posts
- 42
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You can also follow instructions for compiling/installing ruby, rails, mysql, mongrel, gems and a few other tools at http://hivelogic.com/narrative/artic...grel-mysql-osx
The problem with MacPorts is it's a ***** to install if you know little UNIX. And VERY little documentation is available on the subject.
-
Mar 25, 2007, 23:57 #5
- Join Date
- Mar 2007
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
the first step is not that clear when you set your path. go to the hivelogic link mentioned above. If you dont have text mate, use pico instead of mate.
-
Mar 29, 2007, 05:20 #6
- Join Date
- Mar 2007
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
quasimono makes the point
quasimono is absolutely right. The book in itself is perfect but it contains by far, far, far to many errors. Not only in the installation proceedures but even more throughout the coding. Try the test routines in chapter 8 and 9 and you come close to giving up learning ROR. Especially when Mr. Patrick Lenz comments about how intense he searched the code for errors before letting loose the book. Sorry Mr. Lenz but try out your own examples in your book and I guarantee you you'll burn it by chapter 4.
cheers
TomTiger
-
Mar 29, 2007, 05:41 #7
-
Apr 8, 2007, 18:40 #8
- Join Date
- Jul 2004
- Location
- Gerodieville Central, UK
- Posts
- 446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Let me say, setup on a Mac is not easy. Ironic given the fact that Apples seem to have a bad images for being a 'dummy's / grannies' computer. You may find using Ubuntu on a networked PC (using SAMBA to share files to the mac, & remote desktop) easier to get up and running.
http://virtualfunction.net - Rails Web Development
http://squaremove.co.uk - Rails powered Property Listings
-
Apr 9, 2007, 10:21 #9
- Join Date
- Jun 2005
- Posts
- 62
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I have not had any problems with the code. Flawless so far! I'm on pg 245.
-
Apr 11, 2007, 14:06 #10
- Join Date
- Feb 2006
- Location
- Oregon, USA
- Posts
- 1
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I made it through most of chapter 8 without getting frustrated. It helps to check the posted errors at sitepoint. But so far I have been unable to get the tests of chapter 8 to work.
Problem in account_controller_test.rb with test_should_redirect_after_login_with_return_url. The test fails saying that the redirection doesn't include "action" => "new"
I haven't given up yet on this so any help would be appreciated.
-
Apr 17, 2007, 09:32 #11
- Join Date
- Mar 2007
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problem in chapter 7 p.209
Hello everybody,
I am both a Ruby and a Rails newbee.
I must have missed something in P. Lenz' book on Ruby on Rails.
After having applied all the errata in my book with a pencel, I got as far as chapter 7 before my problems began.
Page 209: The latest changes in the source code (those applied in the beginning of chapter 7) does not give me what I see on figure 7.10.
I don't get the score (to the right) and I don't get the 'shove it' button below.
It is as though I haven't made any of chapter 7's up to this point changes at all.
And I *did* remember to save!
Has anybody encoutered this problem?
Regards
Claus, Copenhagen, Denmark
-
Apr 17, 2007, 10:14 #12
- Join Date
- Mar 2007
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ah - I got it.
On page 209 of Lenz' book, I was a bit too fast to notice it:
Above figure 7.10, Lenz writes that I should go to http://localhost:3000/story
I instantly did that, and I was sad to see that I did not get figure 7.10.
But I was too fast. The url in figure 7.10 is not http://localhost:3000/story ... but *using* this page, I can easily get to a url like the one in figure 7.10. And yes, it works fine, just like the man said.
However, should others do the same mistake, I think I ought to answer my own question here on the forum.
/claus
-
Apr 17, 2007, 13:08 #13
- Join Date
- Mar 2007
- Posts
- 3
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Too Many Errors - Where is Sitepoint?
I agree with many of the others who wrote earlier - there are too many errors in this book and in the code download for a newbie. Even some of the experienced people who are trying to help are baffled! The testing code is the worst!
Where is Sitepoint on correcting these problems? Where is the author?
-
Apr 17, 2007, 14:47 #14
- Join Date
- Apr 2006
- Location
- Uk, London
- Posts
- 228
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I don't know what to believe now, after what ppl had been writing here about this book. I was want to buy it too, but now I am concerned because in the end I pay so I can learn and read not to do more mistakes....
Regards Dan,
-
Apr 17, 2007, 20:45 #15
- Join Date
- Nov 2006
- Location
- Melbourne, Australia
- Posts
- 39
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Any errors that are reported to us are added to the errata page and are corrected in following print runs. If you think you've found an error that is not already listed, please tell us about it so that it can be corrected.
Not to discount the problems stated by people in this thread, but I followed the book cover to cover without issue.
ThanksAndrew Krespanis
SitePoint Code Monkey
-
Apr 28, 2007, 23:19 #16
- Join Date
- Apr 2007
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
yea I'd consider myself a newbie too, but between the info on Apple's website:
http://developer.apple.com/tools/rubyonrails.html
and hivelogic:
http://hivelogic.com/narrative/artic...pd_mysql_tiger
I was able to get everything up and running pretty quickly.
in regards to the book, I've noted some errors as well, and yes, more than I'd like to see, but nothing that made me stop in my tracks. there's nothing major just a few typos... if you're really understanding what you're reading you can spot them as you go.
finally, i want to give props to these guys because I've tried the other highly recommended books and this one by far explains it for newbies better than the others. the others I was following blindly and in this one Patrick explains everything thoroughly enough that you can really understand what's going on. with the help of this book I feel I'll finally be moving beyond the "newbie" stage!
-
Apr 29, 2007, 10:52 #17
-
Jun 19, 2007, 21:26 #18
- Join Date
- Feb 2007
- Location
- Melbourne, Australia
- Posts
- 171
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi everyone,
We've been investigating some of the issues with this book reported in the forum and via the SitePoint contact form and have made a significant update to the errata page. I highly recommend visiting the errata page and downloading the code archive again.
Of course if you have any problems please let us know.
Cheers,
Andrew
Bookmarks