As far as programming is concerned, compatibility and ease of use of the logic is what any programmer would certainly dream off. With the fast paced technology we live on today, more programming languages have made interface for people to understand how to get new means of programming logic to go by.
Rails works with a wide range of web servers and databases. For the web server, recommended are Apache, lighttpd, or nginx proxying to Mongrel (or using FastCGI). For database, use MySQL, PostgreSQL, SQLite, Oracle, SQL Server, DB2, or any of the other many systems supported can be considered as well.