If you try to install the nokogiri gem on freebsd you may get the following error message:
Since some time you probably noticed ugly deprecation warning made by mocha if using rspec and rails. Usually they look like this:
To prevent the log files of a rails application to grow without limit you should setup log rotation. There are several ways to do this. Here is a simple solution using
You can move the rails session secret to an environment variable by
config/initializers/secret_token.rb like this:
Since some time it seems to be somewhat impossible to install the ruby-debug gem into your rails app. The error message will most likely look similar to this one:
When testing has_and_belongs_to_many models using rspec and factory girl you should setup your factory the following way:
If you are using heroku you probably ran into some issues with
rake assets:precompile. When using active admin
bringing it’s assets into your app can also be quite tricky.
The method of precompiling your assets yourself and adding them to your git repository works for sure but it isn’t really best practice.
Another way to get the needed assets to be compiled is as follows:
Sometimes you’ll want to remove all ruby gems from your system. This is very easy (at least under unix like operating systems). Just issue the following command: