This article details the components of Rails and shows you how it works.Rails gives you an extremely quick way to develop flexible Web applications; this introduction just barely touched on what it's like to work with Rails. The full framework contains many useful classes and methods for carrying out the actions most used in Web-based applications.
In this tutorial, we'll go through the following steps:
Setup the environment
Create the SQLite database
Develop the Rails application
Create the RBA (= Ruby archive) from the application with Tar2RubyScript
Create the standalone executable with RubyScript2Exe
Ruby is an interpreted scripting language, just like Python and PHP. SitePoint's author Daniel Bogan take a look at the language and how it can be used in web development.
This article is not intended to be a booster piece for Rails nor is it an expose. It’s simply an introduction to the technology. It contains both praise and criticism. At times the criticism might appear a bit heavy handed (especially to Rails enthusiasts), but don’t be fooled. Using any Web application framework is going to be tricky, whether it’s J2EE, ASP.NET, or PHP. In the long run, you can be a lot more productive with Rails than you can be with many other Web application development platforms, but it takes time to learn the ropes.
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.
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.
IBM DeveloperWorks has a helpful howto on how to bring the worlds of Ruby on Rails and your DB2 framework together. From the article: 'Because Rails emerged from the open source world, until recently you had to use MySQL or PostgreSQL to work with it. Now that IBM has released a DB2 adapter for Rails, it's possible to write efficient Web applications on top of your existing DB2 database investment.'