After working for several days, I finally got Ruby on Rails set up on my Ubuntu. I read several tutorials and tried with them. Finally, I adopted the sample used in http://www.oracle.com/technology/pub/articles/haefel-oracle-ruby.html with mysql because it is more up-dated. I did a scaffold. I executed "http://127.0.0.1:3000/categories", but no data showed up with the frames. I executed "http://127.0.0.1:3000/categories/show " or "http://127.0.0.1:3000/categories/list", the error messages came up. /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1267:in `find_one'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1250:in `find_from_ids'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:504:in `find'' app/controllers/categories_controller.rb:16:in `show'' my settings: Ruby version1.8.6 (i486-linux) RubyGems version1.0.1 Rails version2.0.2 Active Record version2.0.2 Action Pack version2.0.2 Active Resource version2.0.2 Action Mailer version2.0.2 Active Support version2.0.2 Application root/var/www/ToDo Environment development Database adapter mysql My database has been properly connected. I downloaded an API module from tmtm.org and checked the connection with simple.rb at http://www.kitebird.com/articles/ruby-mysql.html#TOC_1 by Paul DuBois. I tried with another project. I still could not solve the above problems. I googled some time but to no avail. -- 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 -~----------~----~----~----~------~----~------~--~---
On Mar 2, 12:03 am, Dror Chung <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I read several tutorials and tried with them. Finally, I adopted the > sample used inhttp://www.oracle.com/technology/pub/articles/haefel-oracle-ruby.html > with mysql because it is more up-dated.This tutorial is really out of date. Rails has moved on quite a bit since 2006. I would suggest looking at the tutorials on the Akita on Rails site.> I executed "http://127.0.0.1:3000/categories/show" or > "http://127.0.0.1:3000/categories/list", the error messages came up. > /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1267:in > `find_one'' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1250:in > `find_from_ids'' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:504:in > `find'' > app/controllers/categories_controller.rb:16:in `show''What does line 16 of your categories_controller.rb file say as this is where the error is being thrown? Regards Robin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Tks Robin Most of the tutorials are really out of date. Rails has moved on quite a bit since version 2.0. I read the tutorials on the Akita on Rails site. regards, dror -- 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 -~----------~----~----~----~------~----~------~--~---