No Agrega registro usando : SQLSERVER Rails 1.2.6, 2.0.2 y estoy usando 1.2.6 más act ivescaffold

Buenas:

Tengo la misma aplicación en dos computadores apuntando a un solo
servidor de datos en SQLSERVER, en uno de ellos estoy migrando o mas
bien agregando activescaffold, prácticamente todo ha funcionado, pero
ahora que hago pruebas de agregar registros en cualquier tabla, desde
las mas simples a las mas complicadas( con más relaciones), si existe
alguna validación para no agregar, todo va bien, da las razones de por
que no puede agregar un registro, pero si, todo esta Ok para agregar
el registro, no es capaz de agregar el registro. En la aplicación sin
Activescaffold, esto funciona correctamente.

Alguna idea?, Gracias.

el log es el siguiente :
ActiveScaffold: extending RESTful routes for ajustes
ActiveScaffold: extending RESTful routes for comunas
ActiveScaffold: extending RESTful routes for configuraciones
ActiveScaffold: extending RESTful routes for descuentos
ActiveScaffold: extending RESTful routes for detalles
ActiveScaffold: extending RESTful routes for doctipos
ActiveScaffold: extending RESTful routes for documentos
ActiveScaffold: extending RESTful routes for emisores
ActiveScaffold: extending RESTful routes for giros
ActiveScaffold: extending RESTful routes for meses_activo
ActiveScaffold: extending RESTful routes for notas
ActiveScaffold: extending RESTful routes for odetalles
ActiveScaffold: extending RESTful routes for ordenes
ActiveScaffold: extending RESTful routes for productos
ActiveScaffold: extending RESTful routes for recargaopines
ActiveScaffold: extending RESTful routes for sucursales
ActiveScaffold: extending RESTful routes for sujetonoproductos
ActiveScaffold: extending RESTful routes for sujetos
e[4;35;1mComuna Indexes (0.000000)e[0m e[0mEXEC sp_helpindex
'comunas’e[0m

Processing ComunasController#create (for 127.0.0.1 at 2008-03-25
11:32:37) [POST]
Session ID: 84db50bd6fcb25c04914f4a667b38af9
Parameters: {“commit”=>“Create”, “action”=>“create”,
“controller”=>“comunas”, “record”=>{“nombre”=>“SAN ANTONIO”}}
e[4;36;1mSQL (0.000000)e[0m e[0;1mDBI::DatabaseError: 37000 (195)
[Microsoft][ODBC SQL Server Driver][SQL Server]‘NAMES’ no es un
instrucci�n SET reconocido.: SET NAMES 'UTF8’e[0m
e[4;35;1mUsuario Indexes (0.000000)e[0m e[0mEXEC sp_helpindex
'usuarios’e[0m
e[4;36;1mSQL (0.000000)e[0m e[0;1mSELECT TOP 1 * FROM usuarios
WHERE (usuarios.[id] = 1) e[0m
e[4;35;1mSQL (0.000000)e[0m e[0mSELECT TOP 1 * FROM comunas WHERE
(comunas.nombre = ‘SAN ANTONIO’) e[0m
e[4;36;1mSQL (0.000000)e[0m e[0;1mSELECT TOP 1 * FROM comunas
WHERE (comunas.nombre = ‘SAN ANTONIO’) e[0m

NotImplementedError (insert is an abstract method):
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:37:in
insert' /vendor/rails/activerecord/lib/active_record/base.rb:1811:increate_without_callbacks’
/vendor/rails/activerecord/lib/active_record/callbacks.rb:254:in
create_without_timestamps' /vendor/rails/activerecord/lib/active_record/timestamp.rb:39:increate’
/vendor/rails/activerecord/lib/active_record/base.rb:1789:in
create_or_update_without_callbacks' /vendor/rails/activerecord/lib/active_record/callbacks.rb:242:increate_or_update’
/vendor/rails/activerecord/lib/active_record/base.rb:1551:in
save_without_validation!' /vendor/rails/activerecord/lib/active_record/validations.rb:762:insave_without_transactions!’
/vendor/rails/activerecord/lib/active_record/transactions.rb:133:in
save!' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:59:intransaction’
/vendor/rails/activerecord/lib/active_record/transactions.rb:95:in
transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb:121:intransaction’
/vendor/rails/activerecord/lib/active_record/transactions.rb:133:in
save!' /vendor/plugins/active_scaffold/lib/actions/create.rb:78:indo_create’
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in
transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb:95:intransaction’
/vendor/plugins/active_scaffold/lib/actions/create.rb:72:in
do_create' /vendor/plugins/active_scaffold/lib/actions/create.rb:28:increate’
/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in
send' /vendor/rails/actionpack/lib/action_controller/base.rb:1095:inperform_action_without_filters’
/vendor/rails/actionpack/lib/action_controller/filters.rb:632:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:634:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:634:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:449:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:619:inperform_action_without_benchmark’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' c:/ruby/lib/ruby/1.8/benchmark.rb:293:inmeasure’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:83:inperform_action’
/vendor/rails/actionpack/lib/action_controller/base.rb:430:in send' /vendor/rails/actionpack/lib/action_controller/base.rb:430:inprocess_without_filters’
/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in
process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/session_management.rb:114:inprocess’
/vendor/rails/actionpack/lib/action_controller/base.rb:330:in
process' /vendor/rails/railties/lib/dispatcher.rb:41:indispatch’
/vendor/rails/railties/lib/webrick_server.rb:113:in
handle_dispatch' /vendor/rails/railties/lib/webrick_server.rb:79:inservice’
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in service' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:95:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in each' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in start' c:/ruby/lib/ruby/1.8/webrick/server.rb:82:instart’
/vendor/rails/railties/lib/webrick_server.rb:63:in dispatch' /vendor/rails/railties/lib/commands/servers/webrick.rb:59 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' /vendor/rails/activesupport/lib/active_support/dependencies.rb:495:inrequire’
/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in
new_constants_in' /vendor/rails/activesupport/lib/active_support/dependencies.rb:495:inrequire’
/vendor/rails/railties/lib/commands/server.rb:39
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
script/server:3


Angel Mauricio Pino G
[email protected]
Movil: 08-577.92.72

no supe que hacer, así que lo más fácil pase a RAILS 2.0.2, arregle
cosas que ya había arreglado antes como la conección con SQL agregando
el sqlserver_adapter .rb
en
C:\ruby\lib\ruby\gems\1.8\gems\activerecord-2.0.2\lib\active_record\connection_adapters

copie lo que tenia en plugins, los css, casi todo lo de App, pase el
Inflector al archivo correspondiente
applicacion/config/inicializers/inflections.rb

y ya esta funcionando, incluido el tema de agregar registros sin
problema.

Gracias de todos modos, por las muchas otras veces que me han ayudado
y no he dicho nada para no agregar solo ruido.

2008/3/25, Angel Mauricio Pino Gonzalez
[email protected]:

Activescaffold, esto funciona correctamente.
ActiveScaffold: extending RESTful routes for documentos
ActiveScaffold: extending RESTful routes for sujetos
instrucci�n SET reconocido.: SET NAMES ‘UTF8’ [0m
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:37:in
/vendor/rails/activerecord/lib/active_record/base.rb:1551:in
/vendor/rails/activerecord/lib/active_record/transactions.rb:133:in save!' /vendor/rails/actionpack/lib/action_controller/filters.rb:632:incall_filter’
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:638:inperform_action_without_benchmark’
/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in start' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
script/server:3


Angel Mauricio Pino G
[email protected]
Movil: 08-577.92.72


Angel Mauricio Pino G
[email protected]
Movil: 08-577.92.72

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs