HI I m new to ROR...... I m a PHP developer......my query is like in php when we have to see mysql query we just echo it to see it. Is there any function - method is in ROR to see what the query is running rite now. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Manish Nautiyal wrote:> HI I m new to ROR...... > I m a PHP developer......my query is > like in php when we have to see mysql query we just echo it to see it. > Is there any function - method is in ROR to see what the query is > running rite now.You can look in the development.log in the log folder. Peace, Phillip -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You might find it helpful to have the following 4 console windows open in your dev environment:> mongrel_rails start; if you are using railsthis is where your code will show the debugger if you type debugger anywhere in the code> cd log; tail -f development.logto see the log of all the activity as you hit the browser as you code. This is where the SQL queries will show up as well as any warnings, code as it is evaluated, etc.> script/consoleyou want to have the script/console open so that you can easily test expressions, etc.> path to your appso that you can run the migrations, rake tasks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---