There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...
In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug...
# config/initializers/sidekiq.rb # Perform Sidekiq jobs immediately in development, # so you don't have to run a separate process.
Let's say you have two screens: Show a given project Show a report for all projects Ideally you want...
PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...
Yesterday, Rails fixed a security issue (CVE-2014-3514) in Rails 4+. It was possible to use .where...
edge_rider is Power tools for ActiveRecord relations (scopes). Please note that some of the functions edge_rider provides have...
Amazing guide how to divide a ball of Javascript spaghetti distinct separate layers (model, view, controller, backend adapter).
Previously the assets group existed to avoid unintended compilation-on-demand in production. As Rails 4 doesn't behave like...
Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...
Automatically builds gems from Bower packages (currently 1700 gems available). Packaged Javascript files are then automatically available in your asset...
In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...
So you're getting an error message like the following, although your Gemfile lists shoulda-matchers and it has always...
The most obvious way to use spring is to call it explicitly: spring rails console spring rake db:migrate...
Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...
Now supports Rails 4.1 and Ruby 2.1.
assignable_values now supports Rails 4.1 and Ruby 2.1.0.
Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...
EdgeRider 0.3.0 adds support for Rails 4.1 and Ruby 2.1. It forward-ports ActiveRecord::Base.scoped to Rails 4.1.
RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...
Sometimes you're getting an ActiveSupport deprecation warning that you cannot or don't want to fix. In these cases...
Warnings like those below may originate from rspec or shoulda-matchers or other gems that have not updated yet to...
SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...
When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...