I’m developing an application in Rails and I’m using Extjs 2 for
I’ve found some plugins and helpers that claimed to solve some of the
on Extjs and Rails integration. However, high-level frameworks like
are better programmed using the “Proxy” Ajax-style (term coined by
Benson on his excellent “The Art Of Rails” book). In this Ajax style,
server is has most of business-rules implemented and the client,
to the presentation of the data. However, it’s like there are two
application, the client and the server, and the client can, in theory,
without the server or use another backend, something that doesn’t happen
with the “Partial” and “Puppet” styles, where compiled RJS and partials
sent back to the client.
The following page talks about using Extjs with Rails:
It even provides a link to a plugin that provides a scaffold generator
extends ActiveRecord::Base to provide a helper method to generate
But from what I could understand, the author only views ExtJs as a cool
for CRUD views. He does mention RIAs, but I didn’t see any mention of
techniques to really develop RIAs with Extjs and Rails. His approach is
useful only if you want fancier CRUD views or eventually use some of the
ExtJS widgets in parts of your website/web app. Please, someone correct
if mu judgment happens to be wrong.
So, the main question is: What would be the best way to develop a RIA
Rails and ExtJS while still getting the most of out of Rails (RESTful
design, testing, excellent maintabilty) and also from ExtJS
experience, no page reloads)?
My opinion is: Unless ExtJs gets completely abstracted in Ruby/Rails
(something that Ext GWT did for Java/GWT), if you really want to benefit
from ExtJs for Rich Internet Applications, you will have to shift your
mindset and don’t treat Rails as the central toolbox/ “cockpit” for the
separate JS and HTML files. Rails would then serve the necessary data
JSON. I don’t see also any use for Rails views here.
Please, share your opinions and experiences!