Archive of category "Ruby on Rails"

How we made our Rails feature test suite twice as fast
Cut down on repetitive parts, precompile assets, avoid making external requests, and make the app faster.
October 8, 2021

Rails is still the king
That is if you are making a web app with lots of complicated serverside business logic, but it doesn't have to crunch large amounts of data.
January 31, 2021

A polyglot's view of Ruby&Rails
Слайды моего доклада на Ruby Meditation
May 19, 2018

How to test your gem against multiple Ruby versions on CircleCI
It's much easier on Travis. But sometimes, you don't have a choice.
August 15, 2016

Blog article versioning in Ruby on Rails - a post mortem
I wanted an approach akin to a git-driven app development & deployment flow: make a draft version, proof-read, and only then publish changes.
March 28, 2015

Blog comments in Ruby on Rails - a post mortem
I'd like to share some hurdles I had to overcome with implementation of comments in Ruby on Rails.
March 27, 2015

How to use PaperTrail for soft-deletion
PaperTrail is the leading Ruby gem for ActiveRecord versioning. A less known fact is that once you use PaperTrail, you also get undeletion for free.
February 28, 2014

Memcached expiration time: a horrible API fail
The description of the memcached protocol says that the expiration time:
February 26, 2014

Need random sample images? Why not imgur?
The other day I had to pre-populate an application with some illustrations.
July 4, 2012

Net::HTTPResponse в Ruby 1.9.3 -- как *не* надо депрекейтить методы
Вот эта ошибка заняла два часа моего времени.
April 22, 2012

Выбор кодировки при записи в файл в Ruby 1.9
Угадай, что будет в foo.xml? Строка «тест» в кодировке UTF-8!
April 16, 2012 , revised April 17, 2012

PROTIP: fully qualify Ruby version in .rvmrc
In case you didn’t know (I didn’t), when you write
March 14, 2012

Проведение платежей через LiqPAY посредством Ruby
(The English version of this tutorial is at liqpay’s GitHub page).
January 27, 2012 , revised April 17, 2012

Регулярное выражение для подстановки хелпера image-url в CSS/Sass/SCSS
В процессе перевода очередного проекта на Rails 3.1, написал, наконец, хорошую регулярку для портирования Sass под Asset Pipeline.
November 8, 2011

Установка Ruby 1.9 на Lion через RVM
Проблема: в OSX Lion стандартным компилятором C++ стал Clang, заменив собой GCC. Clang по сравнению с GCC довольно сырой, кроме того, им не компилируется добрая половина расширений Ruby.
November 8, 2011

Устранение конфликта версий Rack на Passenger + Bundler +RVM
Последний раз для себя пишу:
October 23, 2011

My talk on Rubyshift 2011
Extract, Polish & Release Your Own Ruby Gem
October 22, 2011

Мой доклад на RubyShift 2011
Extract, Polish & Release Your Own Ruby Gem
October 22, 2011

Самое простое введение в юнит-тесты
Про юнит-тесты сказано, написано и надумано столько, что очень легко ошибиться и воспринимать их как нечто сложное и неестественное.
October 6, 2011

Что делает deliver! в Rails 3
Потратил некоторое время на поиск неполадки в premailer-rails3 – гем, который «разворачивает» определения стилей в письмах. Наконец, нашел причину.
September 28, 2011