Grid data saving issues.

I am using Ruby on rails for system development.In that to save the data from “dhtmlx grid” i am using the following code

As we are suppose to retain the old row values and insert new row values in update mode, we are using the below snipet.
We inactive the record and write the following code in the update mode.
“code for making the old record inactive is wriiten here”

then

case mode
when “inserted”
@user=ModelName.new(:fiedname1=>params[“c0”],:fiedname2=>params[“c1”])
@user.save
when “updated”
@user=ModelName.new(:fiedname1=>params[“c0”],:fiedname2=>params[“c1”])
@user.save
when “deleted”
puts “do nothing”
end

When the above code is executed we get the following error message in console.
Data is saved in the database sometimes only and inspite we get the following error.

[2011-04-26 17:40:16] ERROR Errno::ECONNABORTED: An established connection was aborted by the software in your host machine.
C:/InstantRails-2.0-win/ruby/lib/ruby/1.9.1/webrick/httpresponse.rb:323:in write' C:/InstantRails-2.0-win/ruby/lib/ruby/1.9.1/webrick/httpresponse.rb:323:in<<’
C:/InstantRails-2.0-win/ruby/lib/ruby/1.9.1/webrick/httpresponse.rb:323:in _write_data' C:/InstantRails-2.0-win/ruby/lib/ruby/1.9.1/webrick/httpresponse.rb:295:insend_body_string’
C:/InstantRails-2.0-win/ruby/lib/ruby/1.9.1/webrick/httpresponse.rb:186:in send_body' C:/InstantRails-2.0-win/ruby/lib/ruby/1.9.1/webrick/httpresponse.rb:103:insend_response’
C:/InstantRails-2.0-win/ruby/lib/ruby/1.9.1/webrick/httpserver.rb:86:in run' C:/InstantRails-2.0-win/ruby/lib/ruby/1.9.1/webrick/server.rb:183:inblock in start_thread’

Can anyone guide us with an appropriate solution as this is high priority.
Appreciate your support in advance.

We do not have ruby on rails support for dhtmlxGrid

Are there plans to add a connector for ROR?

Thank you

Unfortunately we do not have such plans