Asset Fingerprint Plugin for Ruby on Rails - allows you to use md5 or timestamps in query string or in asset filenames as suggested by Google Page Speed
Rails 3.1 preview at the end...
If you would like to use language specific layout (e.g. background-images) in your applications stylesheets you can achieve this...
When you require the Ruby debugger to be available from your Rails console (e.g. you want to inspect a method's magic), you need to enable it explicitly: script/console --debugger
The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4;36;1m, can be annoying when you are reading the...
For some reason you want to define a find condition in array form. And in that condition both column name...
Please don't use the horrible datetime_select helper. It has a terrible UI. Always prefer to use a visual...
Warnings like those below may originate from rspec or shoulda-matchers or other gems that have not updated yet to...
You set a flash message and it shows up as it should. However, it is displayed again the next time...
To check the currently running PG version from your Rails application (e.g. Rails console on your production server), simply do this: ActiveRecord::Base.connection.select_value('SELECT version...
This only works when you actually have a session ID (not the case for Rails' CookieStore, for example): request.session_options[:id] # => "142b17ab075e71f2a2e2543c6ae34b94" Note that it's a bad idea to...
Install libreadline: sudo apt-get install libreadline-dev Reinstall the ruby and tell rvm where to find readline
Since Rails 5, domain models inherit from ApplicationRecord by default. This is the place to put code that should be available in all your application's models.
When you try to remove a non-existing index using remove_index, the migration will incorrectly pass without an error...
If you turn on stylesheet caching, it might happen that stylesheets from different locations with different relative pathes will be...
GoodJob is a new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its...
Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...
If you parse this Yaml ... yes: 'Totally' no: 'Nope' ... you get this Ruby hash: { true: 'Totally', false: 'Nope' }
dusen 0.4.8 and edge_rider 0.2.3 no longer depend on Rails (they still depend on ActiveRecord). That means you can use them e.g. with Sinatra...
When you run rake db:create and get this error message Couldn't create database for {"encoding"=>"utf8", "username"=>"root...
Code example for implementing Cross-Origin Resource Sharing (CORS) in Rails...
...identity map for ActiveRecord. Ruby 1.8.x support will be dropped with or after Rails...
There is a problem with AJAX response handling for Rails 3 remote links and forms in Internet Explorer. This problem affects applications still using jQuery...
SSL in Rails 3 is non-obvious...