New to Ruby on Rails? Spread the Word!: DIGG This | Add to del.icio.us
Rails411 is your one stop Ruby on Rails resource directory. Here you will find Ruby on Rails tutorials, Conference & Workshop Listings, Forums, and Hosting. We are the definitive guide for Ruby on Rails web applications, components, gems, scripts, and other related resources for Ruby on Rails. Accomplishing more with your Ruby on Rails website is easy with the help of these tested, pre-packaged, and ready-to-run resources.

Click any category to add your site for free.

Friday, May 16 2008

Best Practices




Listings
There are 3 listings in this category. Add your listing here
Agile Asset Management with Ruby DSLs
A domain specific language is a language-oriented tool designed to solve a specific set of programming tasks. Common traits are very close to the problem domain within which the language is intended to work, and operating at a very high level of abstraction. In his article about DSLs, Martin Fowler classifies DSLs as either external or internal (see link). An external DSL is a programming language that is either compiledor interpreted. An internal DSL is built within a general- ...
(Hits: 301 | Votes: 0 | Visited: 113 | Added: 2006-07-16 00:23:55)
Rails Best Practices, Tips and Tricks
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...
(Hits: 344 | Votes: 0 | Visited: 140 | Added: 2006-05-22 13:46:31)
The Amazing Rails Pluralizer

One of the features of Rails that confuses people learning the framework is the automatic pluralization of Model and table names.

Because Rails emphasizes convention over configuration, it’s important that you use the right terms. The Rails generators do not enforce these configurations, so you must learn and follow them. For example, the convention is to use singular model names, but the generator will let you use a plural. Don’t do it! Use the singular for you ...

(Hits: 345 | Votes: 0 | Visited: 96 | Added: 2006-05-22 12:38:54)