Would it be possible to create a controller, view, or module, that would be able to take any model, look at the methods / attributes of that model, and create a datagrid based on that. I would like to see something similar to the api for ASP.NET''s datagrid for the databinding. For example: dg = DataGrid.new dg.DataSource = Users.FindAll I''m still in the beginning stages of this thought, but as I''m new to Ruby and Rails, I don''t even know if this is possible. Some features I''d like to see are: xhtml 1.1 compatible Option for completely AJAX driven - OR- simply always AJAX default methods for deleting, editing, paging and sorting Selection either with text boxes or buttons (row cell changes color) Option to AutoUpdate with a default or specified time period Of course, I''m sure as I start this project, I would discover more things that would make it more usable in the long run. The concerns I have are mostly AJAX / Javascript related. How worried should I be about downgrading to older / different browsers gracefully?
Josh Charles wrote:> Would it be possible to create a controller, view, or module, that > would be able to take any model, look at the methods / attributes of > that model, and create a datagrid based on that. > > I would like to see something similar to the api for ASP.NET''s > datagrid for the databinding. For example: > > dg = DataGrid.new > dg.DataSource = Users.FindAll > > I''m still in the beginning stages of this thought, but as I''m new to > Ruby and Rails, I don''t even know if this is possible. Some features > I''d like to see are: > > xhtml 1.1 compatible > Option for completely AJAX driven - OR- simply always AJAX > default methods for deleting, editing, paging and sorting > Selection either with text boxes or buttons (row cell changes color) > Option to AutoUpdate with a default or specified time period > > Of course, I''m sure as I start this project, I would discover more > things that would make it more usable in the long run. The concerns I > have are mostly AJAX / Javascript related. > > How worried should I be about downgrading to older / different > browsers gracefully?Maybe take a look at what Michael Schuerig is working on - Boilerplate. http://www.schuerig.de/michael/boilerplate/ Chris