travisonrails.com

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

Just like Ruby Gems tag their version releases to the corresponding Git commit, it can be helpful to track production...

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...

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...

makandra dev

When you run rake db:create and get this error message Couldn't create database for {"encoding"=>"utf8", "username"=>"root...

codeodor.com

Code example for implementing Cross-Origin Resource Sharing (CORS) in Rails...

weblog.rubyonrails.org

...identity map for ActiveRecord. Ruby 1.8.x support will be dropped with or after Rails...

alfajango.com

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...

themomorohoax.com

SSL in Rails 3 is non-obvious...

github.com

This gem is designed to provide CSS views to Rails, and a process to concatenate and minify these files to one file for production...

yehudakatz.com

...post explains, in some detail, how we will implement a nice performance boost for Rails developers. Understanding the details might help gain the full benefits of the optimization, but you...

guides.rails.info

...walk you through the I18n API and contains a tutorial how to internationalize a Rails application from the start...

rails-i18n.org

YAML List of all translations currently available in Rails

dev.rubyonrails.org

List of Rails releases...

blog.smartlogicsolutions.com

I just finished reviewing Rails 2.3 Nested Object Forms. While a very nice and “magical” feature, I’ve got to admit that I’m really not that crazy about how...

alexyoung.org

This article is an introduction to testing Rails plugins...

bark.metacasa.net

...the plain unit test suite supplied by Ruby, and not any of the extended Rails test framework. This will leave our plugin’s test classes with no access to fixtures...