I''ll start off saying I don''t know much at all about RoR...today is my first day attempting. I have been going through this tutorial (but I''m doing it on linux) http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3 and get this when i try to view the /recipe/new page listed: NameError in RecipeController#new uninitialized constant Mysql RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace This error occured while loading the following files: active_record/mysql.rb Request Parameters: None Show session dump --- flash: !ruby/hash:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} I''m obviously missing a mysql.rb, but googling pulls only 1 unresolved forum post...any Ideas what I''m missing? Is there some mysql module I didn''t load? Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I don''t know which distro you''re using, but there should my a package to provide MySQL bindings to Ruby. That''s probably what is missing in your setup. Cheers, Luciano On 3/22/07, ReDD <reddcell-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I''ll start off saying I don''t know much at all about RoR...today is my > first day attempting. > > I have been going through this tutorial (but I''m doing it on linux) > > http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3 > > and get this when i try to view the /recipe/new page listed: > > NameError in RecipeController#new > > uninitialized constant Mysql > > RAILS_ROOT: script/../config/.. > Application Trace | Framework Trace | Full Trace > > > This error occured while loading the following files: > active_record/mysql.rb > > Request > > Parameters: None > > Show session dump > > --- > flash: !ruby/hash:ActionController::Flash::FlashHash {} > > Response > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > I''m obviously missing a mysql.rb, but googling pulls only 1 unresolved > forum post...any Ideas what I''m missing? Is there some mysql module I > didn''t load? Thanks in advance! > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
# /my/be/ makes my previous message more readable: I don''t know which distro you''re using, but there should be a package to provide MySQL bindings to Ruby. That''s probably what is missing in your setup. Cheers, Luciano --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
apt-get install libdbd-mysql-ruby1.8 Fixed it! (well now I get access denied but thats an issue in my .yml file I''m sure) Thanks alot. On Mar 22, 3:15 pm, "Luciano Ramalho" <rama...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> # /my/be/ makes my previous message more readable: > > I don''t know which distro you''re using, but there should be a package > to provide MySQL bindings to Ruby. That''s probably what is missing in > your setup. > > Cheers, > > Luciano--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---