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`. I have already installed mysql database. Thanks, Chinmaya Joshi -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, By default Rails will work well with embeded sqlite3 database. so simple run bundle install it will solve your problem. In case you want to work with mysql. You need to add "gem mysql" in the Gemfile. And then run "bundle install" Also you may need to change the database config file. Thanks! Butu On Sat, Dec 25, 2010 at 2:17 PM, chinmaya joshi <jchinu2014-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> 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`. > > > I have already installed mysql database. > > > Thanks, > Chinmaya Joshi > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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....displayingcongratulations! you are riding ruby on rails Now which one is right? As the book says........ruby script/server On Sat, Dec 25, 2010 at 4:51 PM, Butu <butu25-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > By default Rails will work well with embeded sqlite3 database. > > so simple run > bundle install > it will solve your problem. > > In case you want to work with mysql. You need to add "gem mysql" in the > Gemfile. And then run "bundle install" > Also you may need to change the database config file. > > Thanks! > Butu > > On Sat, Dec 25, 2010 at 2:17 PM, chinmaya joshi <jchinu2014-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> 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`. >> >> >> I have already installed mysql database. >> >> >> Thanks, >> Chinmaya Joshi >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 25 December 2010 12:16, chinmaya joshi <jchinu2014-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: 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/serverThat 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. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thank you Colin. Do you have any link where i will get the 4th edition of the book for download? On Sat, Dec 25, 2010 at 10:39 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 25 December 2010 12:16, chinmaya joshi <jchinu2014-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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. > > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 25 December 2010 17:32, chinmaya joshi <jchinu2014-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thank you Colin.A repeat: Please don''t top post, it makes it difficult to follow the thread. Insert your reply into the previous post at appropriate points. Thanks.> Do you have any link where i will get the 4th edition of the book for > download?Google led me to http://pragprog.com/titles/rails4/agile-web-development-with-rails in about ten seconds. Colin> > > On Sat, Dec 25, 2010 at 10:39 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> >> On 25 December 2010 12:16, chinmaya joshi <jchinu2014-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> 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. >> >> Colin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.