Memo #6: Using named routes and url_for outside the controller in Ruby on Rails
Sometimes we need to write small console scripts which do some background processing on our models. In Scribd we are using Loops to run these tasks (check Alexey Kovyrin’s introduction post). One of...
View Article10 recommendations on using HTML5 today (aka Homo-Adminus Blog 2.0 HTML5ified)
There was a lot of articles about HTML5 last days, so when Alexey Kovyrin asked me to help him with his new blog design I saw no other choice but using HTML5. There are a lot of new features added...
View ArticleCreating a simple but powerful profiler for Ruby on Rails
You are developing a large Web application. Controllers are full of complex data retrieving logic, views contain tons of blocks, partials, loops. One day you will receive an email with user complaints...
View ArticleScribd open source projects
It’s time to summarize what we have done for the Open Source community. Scribd is pretty open company, we release a lot of code into the public after a time (sometimes it is short, sometimes it is...
View ArticleSimplifying your Ruby on Rails code: Presenter pattern, cells plugin
Today we will talk about code organization in Ruby on Rails projects. As everybody knows, Ruby on Rails is a conventional framework, which means you should follow framework architects’ decisions (put...
View ArticleWeekly Link Dump #1
This is a first link dump in this blog, where I will list all interesting links that I have found in Internet. I plan to post link dumps once a week, so stay tuned to read most useful stuff with no...
View ArticleWeekly Link Dump #2
Time to post some interesting stuff I’ve found in Internet last week. Today we going to talk about CSS font stacks, Ruby structs, extract_options! method came from Active Support, bash scripting,...
View ArticleMy top 7 RSpec best practices
I use RSpec in all my projects. It’s really hard to overemphasize how helpful it is and how much easier becomes your life if you have good specs coverage. But its outstanding flexibility enables many...
View ArticleSubmitting a patch to the Open Source project: composite_primary_keys
Not so far ago I have found a weird bug in the Open Source Ruby gem called composite_primary_keys, occurred when you specify :primary_key option for has_one or has_many association. There are two ways...
View ArticleAdvanced Capistrano usage
One of the most important parts of a development process is an application deployment. There are many tools developed to make this process easy and painless: from the simple inploy to a complex...
View Article
More Pages to Explore .....