I cannot for any circumstances get my application to work. I have Ruby on Rails on Windows XP. It will NOT connect my database for some reason. I am using Instant Rails. I have Apache and MySQL turned on. What I have tried: Start with Mongrel. Ruby script/server Changing my database.yml file I have typed in: ruby script/generate scaffold Product Admin dependency model exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/product.rb create test/unit/product_test.rb : : create app/views/admin/show.rhtml create app/views/admin/new.rhtml create app/views/admin/edit.rhtml create app/views/admin/_form.rhtml When I go to my page. Here is what I see: Action Controller: Exception caught Routing Error no route found to match "/admin" with {:method=>:get} There is nothing in my controller folder. Is there suppose to be? Does anyone know what I am doing wrong. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
When I try rake db:migrate it says: #28000Access denied for user ''root''@''localhost'' (using password:NO) --~--~---------~--~----~------------~-------~--~----~ 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 am not real familiar with instant rails, but that error is coming from mysql. I believe instant rails comes with phpmyadmin, make sure your server is running and if it is, make sure you are using the correct username and password in config/database.yml. Mysql allows root to connect from localhost with no password on a default install, but I am not sure if InstantRails has overridden this. You would need to check their documentation. Mr. Watson wrote:> When I try rake db:migrate it says: #28000Access denied for user > ''root''@''localhost'' (using password:NO) > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
this mean that there is no action for /admin or index try adding this to your admin controller def index redirect_to :action => ''list" end> > When I go to my page. Here is what I see: Action Controller: Exception > caught Routing Error > > no route found to match "/admin" with {:method=>:get} > > There is nothing in my controller folder. Is there suppose to be? Does > anyone know what I am doing wrong.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Watson Did you define the mysql password in the donfig/database.yml ? On Sep 23, 7:14 am, "Mr. Watson" <graphett...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> When I try rake db:migrate it says: #28000Access denied for user > ''root''@''localhost'' (using password:NO)--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---