github.com

Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...

bibwild.wordpress.com

While debugging an intricate issue with failed HTTP requests I have come to appreciate the more advanced features of the...

If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...

To update your Rubygems to the latest available version, type the following: gem update --system Note that you have a...

If you'd like to preview the crontab that whenever will deploy, run the following: bundle exec whenever

To check which rubygems versions your different rbenv rubys are using, you can use this small bash script:

github.com

MarcoPolo shows your app name and environment in your console prompt so you don't accidentally break production Officially supporting...

Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger

makandra dev
github.com

The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...

makandra dev
github.com

Sometimes you need to run background jobs that you can't make important guarantees about - they may run out of...

Today I ran into this: Invalid gemspec in [/usr/local/rvm/gems/ruby-1.9.3-p194/specifications/ZenTest-4.9.3.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]. You need a newer Rubygems version. Try...

makandra dev
semaphoreci.com

Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...

relishapp.com

In RSpec you can tag examples or example groups with any tags you like simply by saying describe ReportCreator, slow...

When using threads, you must make your code thread-safe. This can be done by either locking (mutexes) all data...

Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...

Dusen (our search gem) is now capable of excluding words, phrases and qualified fields from search. E.g. search for

github.com

You can hook into Slack when using Capistrano for deployment. The slackistrano gem does most of the heavy lifting for...

railscasts.com

See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...

I got the following error after updating the selenium-webdriver gem: wrong number of arguments (0 for 1) (ArgumentError) /home/pointoo-dev/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.35.1/lib/selenium/webdriver/common/platform.rb...

makandra dev
github.com

Gem to show failing specs instantly. Unlike the --fail-fast option it doesn't abort abort on the first failure...

github.com

Preview what your markdown would look like on Github. Helpful e.g. when writing or extending a Readme for your gem...

makandra dev
github.com

Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features

Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...

When a gem author releases a new version to Rubygems, usually a tag with the version number (e.g. v1.2.0) is...