I have an application that is relatively straightforward to do using .NET, and I''m sure will be using Rails if I can figure out how ;-| I have a sort of constrained spreadsheet (I control the number of columns and the formulae; the user controls the values and number of rows). I''d like the user to be able to click on cells, edit them, then have the recalculated results percolate throughout the page. My preference is to avoid a pure js implementation, as these can be pretty brittle. In .NET, I can specify a label control as editable and an OnChange event handler, and I''m off to the races. How is this best accomplished in Rails? Any hints? Thanks
Steve Ross wrote:> I have an application that is relatively straightforward to do using .NET, > and I''m sure will be using Rails if I can figure out how ;-| > > I have a sort of constrained spreadsheet (I control the number of columns > and the formulae; the user controls the values and number of rows). I''d like > the user to be able to click on cells, edit them, then have the recalculated > results percolate throughout the page. > > My preference is to avoid a pure js implementation, as these can be pretty > brittle. In .NET, I can specify a label control as editable and an OnChange > event handler, and I''m off to the races. How is this best accomplished in > Rails? > > Any hints? > > ThanksYou gotta get some grasp on the AJAX ride and how it integrates into the Rails framework. It''s pretty straight-forward but you gotta know the foundations. Also, you might want to take a look here: http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor Good luck, Dema -- http://dema.ruby.com.br - Rails from a .NET perspective
Demetrius Nunes wrote:> Steve Ross wrote: > >> I have an application that is relatively straightforward to do using >> .NET, >> and I''m sure will be using Rails if I can figure out how ;-| >> >> I have a sort of constrained spreadsheet (I control the number of columns >> and the formulae; the user controls the values and number of rows). >> I''d like >> the user to be able to click on cells, edit them, then have the >> recalculated >> results percolate throughout the page. >> >> My preference is to avoid a pure js implementation, as these can be >> pretty >> brittle. In .NET, I can specify a label control as editable and an >> OnChange >> event handler, and I''m off to the races. How is this best accomplished in >> Rails? >> >> Any hints? >> >> Thanks > > > You gotta get some grasp on the AJAX ride and how it integrates into the > Rails framework. It''s pretty straight-forward but you gotta know the > foundations. Also, you might want to take a look here: > http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor > > Good luck, > DemaIf you want an AJAX-enabled, Rails-like web app framework for .NET, look no further than http://www.castleframework.org/index.php/MonoRail. After that, the transition to Ruby on Rails would be much less difficult.