windowsteamblog.com

This will hopefully kill IE6 and IE7 for good. The latest available IE for Windows XP is IE8 though.

The unix command line tool less is a good choice for browsing logfiles. In the standard configuration, though, it does...

github.com

When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...

Submit buttons in Rails come with a useful option :disable_with which will disable the button when clicked and change...

When you use google analytics to track your visitors interactions, you should ensure that it runs on your production site...

If you turn on stylesheet caching, it might happen that stylesheets from different locations with different relative pathes will be...

apidock.com

Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...

rails-erd.rubyforge.org

Gem to generate entity relationship diagrams from your Rails 3 ActiveRecord models. The diagram style is pretty and configurable.

I have a pair of headphones connected to my desktop's back panel and a headset connected to the front...

How to ignore new files Globally Add the path(s) to your file(s) which you would like to ignore...

blog.carbonfive.com

I still see people promoting various gems and plugins to handle miscellaneous configuration elements for your application. One little known...

When you have objects in your database that hold latitude and longitude and you want to find others that are...

makandra dev

You have to specify the environment with -e env_name or RAILS_ENV=env_name if you want to run...

If you would like to use language specific layout (e.g. background-images) in your applications stylesheets you can achieve this...

In order to prevent the browser from asking whether to remember the password, give a form an autocomplete attribute with...

There are several options, but most of them are impractical. The best way is to use the :ruby filter:

If you get an error like this: Unable to launch /home/bruce/Projects/myproject/tmp/capybara/capybara-201110311210111407691101.html ... update your launchy gem. It failed for us in...

After starting the Rails server in a freshly generated Rails 3.1 project you could see an error message such as...

Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...

By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...

danhixon.github.com

If you encounter the error message above when running cucumber, just execute... rm rerun.txt ...in the Rails directory.

RSpec 1 (Rails 2) With the most recent spec_candy.rb helpers you can say: User.stub_any_instance(:foo => :bar) user = User.new...

To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...

stackoverflow.com

The solution in this card is based on a stack overflow post by Leventix. If you need to make request...