# Application Trouble

**URL:** <https://www.ruby-forum.com/t/application-trouble/115280>\
**Category:** Rails\
**Created:** [September 23, 2007, 1:08am UTC](https://www.ruby-forum.com/t/application-trouble/115280 "2007-09-23T01:08:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrSWatson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Post date:** [September 23, 2007, 1:08am UTC](https://www.ruby-forum.com/t/application-trouble/115280/1 "2007-09-23T01:08:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MrSWatson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Post date:** [September 23, 2007, 1:15am UTC](https://www.ruby-forum.com/t/application-trouble/115280/2 "2007-09-23T01:15:22Z")

</div>

When I try rake db:migrate it says: #28000Access denied for user  
‘root’@‘localhost’ (using password:NO)

---

<div class="post-metadata">

**Author:** ![MrSWatson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Post date:** [September 23, 2007, 1:34am UTC](https://www.ruby-forum.com/t/application-trouble/115280/3 "2007-09-23T01:34:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MrSWatson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Post date:** [September 23, 2007, 8:16am UTC](https://www.ruby-forum.com/t/application-trouble/115280/4 "2007-09-23T08:16:48Z")

</div>

Hi Watson

Did you define the mysql password in the donfig/database.yml ?

---

<div class="post-metadata">

**Author:** ![MrSWatson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Post date:** [September 23, 2007, 2:42am UTC](https://www.ruby-forum.com/t/application-trouble/115280/5 "2007-09-23T02:42:27Z")

</div>

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
