hi new to rails ... wat does it means... uninitialized constant BooksController::Books /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:102:in `const_missing'' app/controllers/books_controller.rb:5:in `index'' -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mark Reginald James
2008-Dec-20 06:51 UTC
Re: uninitialized constant BooksController::Books
Newone One wrote:> hi new to rails ... > wat does it means... > uninitialized constant BooksController::Books > > /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:102:in > `const_missing'' > app/controllers/books_controller.rb:5:in `index''Most likely you have written Books.find instead of Book.find. -- Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.com --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mark Reginald James wrote:> Newone One wrote: >> hi new to rails ... >> wat does it means... >> uninitialized constant BooksController::Books >> >> /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:102:in >> `const_missing'' >> app/controllers/books_controller.rb:5:in `index'' > > Most likely you have written Books.find instead of Book.find. > > -- > Rails Wheels - Find Plugins, List & Sell Plugins - > http://railswheels.comthanks alot :)....i made it right... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Im newbie and have the same problem too. After I manually change all the Books.find to Book.find, it prompt me the same error, so I restart the server, clear private data(in firefox) and refresh the page, the error message is, "Ruby on Rails application could not be started" "no such file to load --- book (MissingSourceFile)". what should I do?> Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shirley, your model is probably called app/models/books.rb, change that too. ----- Ryan Bigg Freelancer http://frozenplague.net On 23/12/2008, at 12:58 PM, shirley wrote:> > Im newbie and have the same problem too. > > After I manually change all the Books.find to Book.find, it prompt me > the same error, so I restart the server, clear private data(in > firefox) and refresh the page, the error message is, > "Ruby on Rails application could not be started" > "no such file to load --- book (MissingSourceFile)". > > what should I do? > >> Posted viahttp://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---