Technology Insights

ActiveRecord SQL in script/console

Rails’ ActiveRecord displays the exact SQL queries it performs into the development log. It is inconvenient to watch this log while you’re working in the `script/console` environment, however, and most advice for redirecting that log to STDOUT seemed not to work. Thanks to [Jamis Buck](http://weblog.jamisbuck.org/2007/1/31/more-on-watching-activerecord “More on watching ActiveRecord”), though, the solution has come to…

Details
Technology Insights

RoR IDEs for Windows

Updated on 12/11/07 Here’s a breakdown of Ruby on Rails IDEs for Windows. Please feel free to add to this by adding a comment to this blog entry. I currently switch between RoRED (writing and navigating code) and Netbeans (GUI debugging) I broke it down in 2 types. Free vs. Commercial Free RoRED RoRED is…

Details
Technology Insights

Basics of Layouts and Nested Layouts in Rails

Layout basics Here’s Duane Johnson’s concise explanation of how layouts generally work in Rails. To summarize this blog article, layouts occur at 2 levels (applciation-wide or controller-wide) by default: The entire Rails application (all views of all controllers) will use this layout: views/layouts/application.rhtml All views within a single controller will use this layout. For example,…

Details