walterbyrd wrote:

> Is RoR a framework, or a code generator?

It is a framework and platform that allows you to ignore zillions of low-level 
details. When the high-level methods don't work, you can easily write the 
low-level details yourself. For example, given an ActiveRecord model called 
Model, you can use Model.find_by_name(...) to generate and run the SQL query 
required to find a model by its name. If you need a more complex query, you can 
write Model.find(...) and put little snips of the target SQL into that method. 
If you need still more complexity, you can write Model.find_by_sql(...), and 
then put an entire customized SQL statement in there.

This concept is called a "Domain Specific Language". Rails's authors have 
constructed little languages out of Ruby primitives that let you stay mostly in 
Ruby while creating SQL and HTML code.

RoR offers the best of those data-driven systems you listed. And, unlike a 
Java-based solution, the Ruby language is very flexible and dynamic. People who 
switch to RoR tend not to switch back!

-- 
   Phlip


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to