Debug

Hay algún debug para ver las variables que llegan al template? gracias

Si quieres ver las peticiones ajax(aparte de 40.000 cosas más), con
firebug,
un plugin de firefox vas sobrado.

Si quieres ver las variables en sesión, de instancia, etc. que llegan de
los
controladores, instala en tu aplicación el plugin debug_helper , que te
añade un botón a cada página con todas las variables

[1] http://www.realityforge.org/svn/public/code/debug-view-helper/trunk/

On Sep 16, 2007, at 10:17 PM, coolgeng coolgeng wrote:

Thanks a lot. When I disabled this line, the program do work.
But if I would like to reserve this function and not discard this
line, what
should I do?

From this point on it is HIGHLY recommended to buy a book.
Especially the Agile Web D. With Rails book.
It’s all in there. (not necessarily in the order you might expect,
but it’s in there)
If you’re really new to web development, you should go for the Rails
book from SitePoint publishing.
It’s a perfect newbie book, but you’ll still want to have AWDWR.
Also, do not neglect the Ruby on Rails web site. There is lots of
info there too.
The Rails Talk group is also helpful, but you’ll do better to go
there after you’ve learnt the basics of Rails.
Don’t worry, Rails basics are not that tough. A lot of frameworks in
other languages are a LOT more convoluted (sometimes just by the
language they’re written in)
Oh one more. keep a browser window open to the Rails API !!! It’s
quite good and extremely useful in learning and more.

but you really should try to keep questions for this list to Ruby
specific things.
some Rails stuff is Ruby specific, but so far this isn’t.

My site does not work. And what is the meaning of unit tests pass?There
is
nothing in my log file.

John J. wrote:

the Agile Web D. With Rails book.
other languages are a LOT more convoluted (sometimes just by the
language they’re written in)
Oh one more. keep a browser window open to the Rails API !!! It’s
quite good and extremely useful in learning and more.

but you really should try to keep questions for this list to Ruby
specific things.
some Rails stuff is Ruby specific, but so far this isn’t.
Also look at RailsSpace I have both and RailsSpace does a good job of
providing information you would have to dig for in the Agile book.

-r

Thanks a lot. When I disabled this line, the program do work.
But if I would like to reserve this function and not discard this line,
what
should I do?

-----Original Message-----
From: coolgeng coolgeng [mailto:[email protected]]
Sent: Monday, September 17, 2007 4:15 AM
To: ruby-talk ML
Subject: Re: Debug

I check the development.log, and it says : “Mysql::Error: #42S02Table
‘depot_development.sessions’ doesn’t exist: SHOW FIELDS FROM sessions”

Learn what you are actually doing:
http://www.rubyonrails.org/docs

And ask the specialists:
http://www.rubyonrails.org/community

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.

I can see the Welcome to Rails page through “http://localhost:3000/”.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs