When running migrations with rake db:migrate, there's the STEP and VERSION parameters that you can pass to nearly...
When you put a Rake task into lib/tasks, but running it fails with... Don't know how to build task...
If you’re testing the behavior of deprecated code in your Ruby project, the warning messages littered throughout your spec...
...your console prompt so you don't accidentally break production Officially supporting IRB (standard rails console) and pry (via pry-rails gem). Example: $ rails console Loading development environment (Rails...
From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string: >> {:a => "a", :b => ["c", "d", "e"]}.to_query
sudo apt-get install unzip rake rails:freeze:edge RELEASE...
You probably need to activate X-Sendfile.
Very detailed guide to caching Ruby on Rails. Goes well with the official Rails guide on caching...
We’ve been working on one of our first Angular projects with a Rails backend. It’s been a great experience. I wanted to share a few things we learned...
...that we hope are helpful to others building Angular on Rails apps...
With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their web applications in the coming new year.
...a series of blog posts going over everything you will need to know about Rails 4 for an effortless upgrade...
If you have an integer and want to use it to represent an element's position (like "1st" for 1...
Do you have page caching enabled for the development environment and there are cached pages lying around in public/?
...is raised because your old database does not have a configured environment yet, which Rails 5 enforces. If this error occurs while migrating your parallel test databases, make sure to...
Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end. They do this to evolve the ActiveRecord::Migration API without breaking...
...to store JSON data and choose the one that matches your use case best. Rails 4.2 includes support for jsonb columns, too. The article outlines different ways on how to...
Previously the assets group existed to avoid unintended compilation-on-demand in production. As Rails 4 doesn't behave like that anymore, it made sense to remove the asset group...
How to remove/disable the automatic XSS protection helper html escaping for Rails 3. This is probably a horrible idea...
...attached link for a way to extract the conditions of a named scope in Rails...
...a look at what you need to do to get your app ready for Rails...
The asset pipeline from Rails 3.1 packported to 2.3. By Michael Grosser from parallel_tests fame...
This sounds promising: The best part from the Rails side, is that you don’t have to change anything at all in your code to swap a varchar out for...
How to call routes, make requests and try out helpers from the Rails console...
A possible way for localisation in Rails applications that allows editing translations remotely...
...to handle miscellaneous configuration elements for your application. One little known secret is that Rails 3 allows you to define your own configuration elements trivially...