Re: AJAX based data grid for Rails App? Is there any code/approach I can leverage?

Danimal
Fri, 04 Apr 2008 04:52:56 -0000

Greg,

Id start by looking at Rails'' in_place_editor:
http://api.rubyonrails.com/classes/ActionView/Helpers/JavaScriptMacrosHelper.html#M000575
or this blog:
http://rubythis.blogspot.com/2006/11/using-rails-inplaceeditor-and.html

Also, to see it in practice, take a look at ActiveScaffold:
http://www.activescaffold.com/ and try out their demos. They have
basically what you are describing. You could either use their system,
or even look at their source code to see how they did it.

Either way, what you are describing is very doable.

-Danimal

On Apr 3, 8:46 pm, "Greg Hauptmann"
<greg.hauptmann.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Hi,
>
> I want to have a page in my Ruby on Rails application that is like a
dynamic
> / updateable data grid.  Like a matrix or spreadsheet segment (x rows, y
> columns) which one can click in any of the cells and make an update, which
> triggers some AJAX code to fire off the update, and then the responses come
> back and update whatever else needs updating based on this change.
>
> Does Rails support this?  Is there a good plugin or sample application that
> does this I can look at?  Perhaps a prototype project example?
>
> Thanks in advance
> Greg