I have installed Ruby 1.8.7 and rails 3.0.3 on ubuntu 10.04.
i am following the steps given in the book ‘Agile web development with rails’ and i am new to the world of ruby on rails.
just after entire installation i have created a rails application called ‘demo’
however when i enter the command …ruby script/server i get the following error:
Could not find gem ‘sqlite3-ruby (>= 0, runtime)’ in any of the gem sources listed in your Gemfile.
Try running bundle install.
yes dis did solve the problem …BUT
When i type…: ruby script/server…i get the error that directory cant be found
However when i i type…: rails server…it gets me to the localhost server…http://localhost:3000…displaying congratulations! you are riding ruby on rails
Now which one is right?
As the book says…ruby script/server
Please don't top post, it makes it difficult to follow the thread.
Insert your reply into the previous post at appropriate points.
Thanks.
yes dis did solve the problem .....BUT
When i type..: ruby script/server.........i get the error that directory
cant be found
However when i i type........: rails server..........it gets me to the
localhost server..........http://localhost:3000....displaying
congratulations! you are riding ruby on rails
Now which one is right?
As the book says........ruby script/server
That is because you are using a Rails 2.3 book with Rails 3. You want
edition 4 of the book, or use the tutorial at railstutorial.org.