I\'ve been just going through PragProg Continuous Testing With Ruby, where they talk about invoking IRB in context of current class to inspect the code manually.
In my .irbrc file I require \'logger\' to allow me to see the SQL executed when querying ActiveRecords all while in the script/console.
How can I execute a image_tag me开发者_C百科thod in a Rails console Run the console $ rails c Load helpers
I\'m writing a class for solving sudoku puzzles that has some two dimensional arrays which contain pointers to Cells that point back to these two dimensional arrays. Something like this:
Using Rails3 and Ruby 1.9.2, I am new, just learning Ruby/Rails-- When I run irb I end up with irb(main):001:0> which is fine.
In the python world, there are a number of alternative python interpreters that add co开发者_JAVA技巧ol additional features. One particularly useful example is bpython, which adds dynamic syntax highl
I\'m trying to include a source code file when I run irb but irb is unable to find it. For example, say I am in the following directory in terminal:
I am using http://tagaholic.me/hirb/ to format AR queries in console with pretty, MySQL like table views.
I\'m trying to update irb on my OS X 10.5 macbook: $ irb -v 开发者_StackOverflow中文版irb 0.9.6(09/06/30)
In Ruby main, you can embed IRB inside of a Ruby script as described here. Is there a way to开发者_开发技巧 do something similar with IIRB inside an IronRuby script?http://wiki.github.com/ironruby/iro