Rails: "500 – Internal server error" caused by error in application.rb

Today, while working on my Ruby on Rails project, I got a “500 – Internal server error” page soon after I tried to run the project after running a migration. There was nothing else on the screen except for that one line.
I tried a few things, like restarting NetBeans, and opening another project to see [...]

How to create a simple datepicker using jQuery

jQuery allows you to easily create a datepicker and customize it according to your requirements. Here’s a quick look at how you can get started with using the jQuery datepicker.
The jQuery website has a nice application called Themeroller that lets you customize the interface for jQuery UI widgets. There are also plenty of themes available [...]

jQuery: Avoiding conflict with other libraries using jQuery.noconflict()

Recently, when using jQuery in my Ruby on Rails project, the jQuery calendar plugin I was using suddenly refused to work in one of the views. The plugin was working fine everywhere else, but it just wouldn’t work here.
The problem was that there was a conflict with a rails prototype helper (observe_field) that I was [...]