Recently in Nettigo I’m busy with learning Chef. Oh, we are small company (in terms of number of servers), so, when finally I had some practice witch Chef I stated I don’t need it :) At least, as full-blown tool, with knife, Chef server (both self hosted and as service). What I find useful is …
Category Archives: Other
Associations and to_json on collections of objects
ActiveRecord’s Serialization module does provide to_json method. It allows include associations when dumping to JSON, but it works only for single objects. If You want to run it against collection, returned by find :all You will get: >> Model.all.to_json :include =>:association TypeError: wrong argument type Hash (expected Data) from (irb):13:in `to_json’ from (irb):13 If You …
Continue reading “Associations and to_json on collections of objects”
Test benchmark – useful gem for Rails tests
Doing TDD You need to know which tests are making whole suite slower. If time used by rake test becomes too long, You may be tempted to skip running tests… Waiting for them to complete becomes suddenly burden on Your way to next task. So, when You need to optimize Your test suite, test_benchmark is …
Continue reading “Test benchmark – useful gem for Rails tests”
Django, anyone?
I do write this blog in English (duh, at least I try :) ) but according to Google Analytics readers from Poland are quite numerous so… Friend of mine (Marcin Kaszy?ski) in October will run workshops “Creating applications with Django“. If You want to learn about Django framework You have good opportunity to gain some …
NetManiac – reloaded
This year have stared for me with permanent lack of time. In January I was finishing Ruby project, which was started over one year ago. And last six weeks I was involved in creation of prototype application (Rails of course) for some Germany startup. It seems that this stage is over and I did not …