Resume and bio of the author Couple of articles related to my hobby - robotics
My impressions about immigration to Australia. In Russian only. Recipes for everyday problems solving
Linux-related posts Windows-related posts
Software-related posts A lot of info about hardware
Different tools you might find useful Posts about various web technologies
Everything that doesn't fit the rest of the menu RSS feed for this blog

Tag Cloud



Andrey Mikhalchuk’s Blog

Technoblog about life

Sep 13, 2013 ActionView::Template::Error (active_admin.css isn’t precompiled)

Just sepnt quite some time fixing infamous “ActionView::Template::Error (active_admin.css isn’t precompiled)” error on prod. Everything worked fine in dev environment but once I put the code on prod it broke. Couple websites proposed several solutions, but none of them worked for me. Finally a combination of difference recipes seemed to fix the problem. Here is how …

Read More

Oct 28, 2010 Rails: what happens when memcached goes down

I tried to figure out how rails reacts to the fact that memcached goes down. Unfortunately there is no god documentation about this besides saying that everything will be fine. Also there are couple misleading posts in different forums saying that rails will never rediscover memcached server that went down and came back again. Here’s what is actually happening…

Read More

Jul 2, 2010 Ruby on Rails: how to override default_scope – a better approach

Ever used default_scope in RoR? Ever regretted you had ever read about this feature after you wrote tons of code and later realized you can’t access the records you need in a convenient way when necessary? Try googling “how to override default_scope” and you will find tons of advices how to do it with model.send(:with_exclusive_scope) { super }, but no real way how to cancel it completely for a model when you really need it (like in tests for instance). Here is a simple solution and a few advices regarding this misfeature:

Read More

Site Map (c) Andrey Mikhalchuk, 2005-2008