...hide gems from the backtrace. In such cases, log_subscriber.rb is the inner-most (i.e. "best") source in the backtrace. You probably have an initializer with this line: Rails.backtrace_cleaner.remove_silencers!
In my opinion using this plus the icon font you get the best of all worlds, with low CPU usage, no JavaScript, and file-sizes in the one...
On your local system that only hosts non-critical development data and only you have access to, you can store...
...new value (be aware that you should use a secure and salted hash) or better call the the_user_to_log_out.reset_remember_token! method that does the things for you.
Do all of the above, and also Remove all blocks and hooks belonging to craken from your config/deploy.rb. Delete vendor/plugins/craken. Check if you have lib/tasks/craken.rb. If so, delete...
Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11
Spreewald's patiently repeats the given block again and again until it either passes or times out.
Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...
Capistrano 2 brings the shell command which allows you to run commands on your deployment targets. There is also invoke...
If you need to run a program on a remote machine (e.g. to your office PC) with a graphical UI...
This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...
When flagging a spec that will be implemented later as pending, include a failing spec body or RSpec 3 will...
...what "memoize" in earlier rails versions did. There is a gem that reintroduces this behavior, but this is the essential implementation. Remember In the above example, some_expensive_calculation is...
...it will be fixed, I guess it will be for Rails 4 only. The best workaround right now is to lock your version of rack at version...
...remember to nilify it afterwards. Otherwise other examples will see your global changes. A better way is to use the .with_power method to change the current power for the...
ImageMagick can automatically crop surrounding transparent pixels from an image: convert input.png -trim +repage output.png
...On the database level, you will see these queries (simplified; the number at the beginning of each line is the connection ID): 1 Connect 1 BEGIN 1 INSERT INTO foos...
...you might be doing stuff afterwards that could require to abort the transaction). A better approach As a general rule, never use ActiveRecord::Base.establish_connection and also don't use...
...include(3, 4, 5) evaluates to: NOT( .to include(3, 4, 5) ) However, it behaves like: .to (NOT include(3) && NOT include(4) && NOT include(5) ) Warning
With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...
You are getting when connecting via SSH or deploying with Capistrano (which uses SSH): Too many authentication failures for username...
When paginating records, we usually need to know the number of total records in order to render pagination links. Popular...
Instead of running all missing migrations on your test database with rake db:migrate RAILS_ENV=test you can also...
You can use JavaScript to get or set cookie values on the client. Using the vanilla JavaScript API
...Safari, ...) or Firefox, this is only the initial size -- users can resize textareas to become bigger. This is helpful to the user, but may be breaking your application layout in...