Michael Benedict's Blog
This tutorial deals with AJAX implementation in Ruby on Rails 2. While I was
learning RoR, I had lot of issues of properly having AJAX implementation in
my projects. This tutorial is for those people out there. In this tutorial,
I`ll just show some very simple Script.aculo.us Animation Implementations in
RoR.
View Demo
Introduction
First off, if you followed my RoR tutorials, you should know that RoR has
AJAX support built in to it. It uses the Prototype Javascript Library along
with Scriptaculous.
Step 1 - Create new RoR Application
First create a new RoR application. Edit the database.yml file as well.
Step 2 - Create a Controller
After creating the new application, we need to create a controller. lets call
the controller ajaxfunctions. I hope you guys know how to create a
controller.
ruby script/generate controller ajaxfunctions index
T... (more)