How to setup a Windows development PC and a shared web host environment so you can start developing Ruby web applications in the same way you do PHP, embedded in HTML. Ruby is easy to learn and has features that make it more useful than other web scripting languages. Now you can use eRuby to create robust web applications and websites.
SUSIE is a simple image gallery that is an opensource eRuby application. It is interesting because it shows how Ruby, a powerful and fully object oriented programming language can be used to do the tiniest of tasks. Ruby can be used as a fast procedural code language that rivals PHP and still do things in OOP that Java and C# cannot.
If you want create a dynamic web page that works on more than just MySQL then try Ruby DBI. Ruby DBI will help you create a single database interface for connecting your web application to multiple database types like MySQL, PostGreSQL and SQL Server. This article also explains some of the typical mistakes made when installing Ruby DBI.
Yes, you can run Ruby on Windows and eRuby on Windows IIS web servers. Ruby has many features to process text files and to do system management tasks as languages like Perl or Python do. Ruby is also a great web scripting language. Follow this tutorial and you can use Ruby on your Windows IIS web server by setting up eRuby to process *.rhtml pages.
Ruby is a great language to use to create a dynamic website. Here's how to use it to do CGI scripting. Using eRuby ERB templating to seperate the HTML from the script makes CGI a perfect alternative to using the Rails framework. Easy and faster than you would expect. So easy in fact that you may forget about using Rails all together.
Ruby on Rails is Model-View-Controller web-application framework. Rails uses ActiveRecord database abstraction classes to work with SQL tables. However, sometimes it is more convenient to work with plain SQL queries(without any model classes) for specific database operations.
RoR's default pagination methods have a number of bottlenecks. In this guide you will learn how to use paginating_find to create fast, reusable and good looking pagination code for your projects. This method also works for pagination of find_by_sql queries and even supports find_by_sql with eager loading!
Because Rails is a young framework, I thought it would be helpful to write up what I consider best practices when coding with it both for my new coworkers and the web at large. Here’s my current draft. Feel free to critique and comment. I’m very open to suggestions.
Ruby has many exciting object oriented features, but a large percentage of your code will revolve around arrays. In this valuable tutorial, we’re going to show you some tips and tricks for this powerful data structure.