Ajax vs Ruby vs Ruby on Rails

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm afraid this is going to sound like a stupid question, but how do
Ajax, Ruby and RoR relate to each other?

I picked up a book that talked about using "frameworks" under Ajax and
that RoR could be one of them.

I also understand that the ruby programming language dates back to the
early 90's but RoR is only a few years old (2003 I think?)...  What
does RoR change about Ruby?

Again, I'm afraid these are stupid questions ...


Re: Ajax vs Ruby vs Ruby on Rails

And lo, pizzaboy didst speak in alt.www.webmaster:

Quoted text here. Click to load it

AJAX is a simply a means for having the currently displayed HTML page make  
additional HTTP requests without reloading the page.  It doesn't directly  
relate to Ruby in any way.

Ruby is a programming language/environment.

Ruby on Rails is a meta-environment of pre-constructed Ruby bits and  
pieces which allow you to build really neato-peachy-keen webapps with just  
a few powerful functions and classes.

There's more to it than that, of course, but that is the gist.

Quoted text here. Click to load it

RoR is often used to quickly build web application frameworks which are  
then fleshed out with styles and templates.  In an abstract sense, it's  
like "Dreamweaver" for web-applications, except without the WYSIWYG part :P

Quoted text here. Click to load it

It simply makes programming applications in Ruby much much faster, because  
all the common bits are preprogrammed.  For instance, say you're creating  
a blog and want to add an extra text field to the comment posting form.  
Using the "old way" you would edit the HTML form and add the text field,  
then edit the server side script to process the new incoming data, then  
alter the database to store the field, then alter the post display script  
to display the new content for each comment.  *whew*

With Ruby on Rails, you could do all those things by adding a text field  
class to your existing Ruby-built form; all the processing, storage and  
display algorithms get updated automatically.

You can watch these webcasts for some visual examples:


The technical axiom that nothing is impossible sinisterly implies the  
pitfall corollary that nothing is ridiculous.
- http://www.greywyvern.com/orca#search - Orca Search: Full-featured  
spider and site-search engine

Re: Ajax vs Ruby vs Ruby on Rails

On Tue, 02 Jan 2007 17:17:39 -0500, GreyWyvern put finger to keyboard
and typed:

Quoted text here. Click to load it

I'm not sure whether it's included in the standard RoR distro or
whether it's a separate package, but there's a bunch of AJAX widgets
designed to be used with RoR that can plug straight into a standard
RoR website, which is another reason why the two often go together.

Visit: http://www.ukcommunityradio.info - Community Radio in the UK
"I wanna spend all your money"

Re: Ajax vs Ruby vs Ruby on Rails

Thank you to GrayWyvern and Mark for your answers -- both provided me
some insights  ...

For others who may stumble across this thread asking the same questions
that I am asking, here are some other things I found that will further
explain how RoR, Ruby and Ajax relate ...

This jumped out at me:

"...The consequence of starting with a complete framework like Rails is
that web application programmers can develop web applications much
faster than if they were starting from scratch. The marketing for Rails
claims that it lets you develop ten times faster than a programmer sans
Rails. To really understand the power that Rails gives programmers, you
should watch the Rails video, which shows a Rails application being
built from scratch in 15 minutes! ..." from the overview linked
directly below ...  Isn't that what we're all after?  Faster, better
and cheaper development with better resulting applications?

Here is an excellent article/overview of the whole enchilada:

Here is a good concise explanation of what Ajax is:

And lastly, here is a good overview of Ruby on Rails:
http://www.rubyonrails.com /

Quoted text here. Click to load it

Site Timeline