[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Debug

Eugene Bolshakov

9/13/2007 9:45:00 AM

Hi

Did you restart the server?

2007/9/13, coolgeng coolgeng <coolgeng410@gmail.com>:
> With the Rails, I build a project connecting the MySQL. But When I change
> the password access in database. I can not access in the project. Then I
> check the database.yml file. And change the username and password. But it
> does not work.
> So ......
> I do not know how to resolve this problem?
>
>
> --
> Best Regards
> Cooper Geng
>

3 Answers

Phlip

9/13/2007 10:05:00 PM

0

> Yeah,I have restart the server. But it can not fix it..

Did you try my checklist?

Phlip

9/14/2007 2:58:00 AM

0

coolgeng coolgeng wrote:

> ./script/../config/boot.rb:43:Warning: require_gem is obsolete. Use gem
> instead

That will say that for a few more versions of Rails, apparently. It is a
"warning", which in computer science is a minor error that does not stop a
program.

> => Booting Mongrel (use 'script/server webrick' to force WEBrick)
> => Rails application starting on http://0....
> => Call with -d to detach
> => Ctrl-C to shutdown server
> ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
> ** Starting Mongrel listening at 0.0.0.0:3000
> ** Starting Rails with development environment...
> ** Rails loaded.
> ** Loading any Rails specific GemPlugins
> ** Signals ready. INT => stop (no restart).
> ** Mongrel available at 0.0.0.0:3000
> ** Use CTRL-C to stop.

And that is a normal Mongrel startup.

Does your site work? Do your unit tests pass? What is in your log/* folder?
Does log/development.log contain the word Error anywhere?

--
Phlip


John Joyce

9/14/2007 2:28:00 PM

0

on your dev machine, point your web browser to
localhost:0.0.0.3000
You should see the Welcome to Rails page.

You also want to make sure you've properly entered the values in your
Yaml file for your system.

But you really should take this to the Rails list or browse more
Rails sites. This point in starting out with Rails is very well
documented in many books and countless online tutorials.