Hay algún debug para ver las variables que llegan al template? gracias
on 2007-02-28 10:54
on 2007-02-28 11:25
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  http://www.realityforge.org/svn/public/code/debug-...
on 2007-09-25 23:00
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 Development 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.
on 2007-09-25 23:02
My site does not work. And what is the meaning of unit tests pass?There is nothing in my log file.
on 2007-09-25 23:04
John Joyce wrote: > the Agile Web Development 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
on 2007-09-25 23:04
> -----Original Message----- > From: coolgeng coolgeng [mailto:email@example.com] > 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 2007-09-25 23:05
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?
on 2007-09-25 23:09
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.