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.
The Rails framework takes most of the headache away from developing these relationships and almost entirely eliminates the need to write low-level queries to your database. If you've spent time writing those queries, Rails' ActiveRecord will make sense, but for those of you who are just getting started this can be confusing.
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.
Applie included Ruby with the Jaguar OS. In this article, Jim explains how to use this pure object oriented scripting language by exploring Ruby's features.
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
This tutorial will focus on the ActionController. The first sections will cover the services provided by ActionController and the techniques to access them. The final section will provide insight into using these techniques in the real world.
This article covers the basic services provided by the ActionView. The ActionView helps you present data to your users. Keep reading to learn some terminology and study an example application.
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.