En este grupo En todos

Foro de Ruby on Rails



Problemas con ruby on rails

Amilcar
La Paz, Bolivia
Escrito por Amilcar Lanza Zeballos
el 05/02/2010

cuando quiero revisar mi proyecto me sale que tengo un error pero en la maquina original todo esta bien salvo en la mia que no puedo ver nada solo error
si alguien me puede ayudar



TypeError in Home#index

Showing app/views/home/_index_one. Erb where line #7 raised:

can't convert String into Integer

Extracted source (around line #7):

4: <div class="boxed"> 5: <ul class="acc" id="acc"> 6: <%= @rparmmo %> 7: <%= intro_acc(@rparmmo) %> 8: </ul> 9: </div> 10: </div>

Trace of template inclusion: app/views/layouts/application. Erb

RAILS_ROOT: C:/Rails/GT4 Contab

Application Trace | Framework Trace | Full Trace
C:/Rails/GT4 Contab/app/helpers/home_helper. Rb:51:in `[]' C:/Rails/GT4 Contab/app/helpers/home_helper. Rb:51:in `intro_acc' C:/Rails/GT4 Contab/app/views/home/_index_one. Erb:7:in `_run_erb_app47views47home47_index_one46erb_locals_index_one_object' C:/Rails/GT4 Contab/app/helpers/application_helper. Rb:39:in `navigation' C:/Rails/GT4 Contab/app/views/layouts/application. Erb:25:in `_run_erb_app47views47layouts47application46erb'
C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/renderable. Rb:34:in `send' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/renderable. Rb:34:in `render' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/base. Rb:306:in `with_template' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/renderable. Rb:30:in `render' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/renderable_partial. Rb:20:in `render' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_controller/benchmarking. Rb:26:in `benchmark' C:/Ruby/lib/ruby/gems/1. 8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark. Rb:17:in `ms' C:/Ruby/lib/ruby/gems/1. 8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark. Rb:10:in `realtime' C:/Ruby/lib/ruby/gems/1. 8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark. Rb:17:in `ms' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_controller/benchmarking. Rb:26:in `benchmark' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/renderable_partial. Rb:19:in `render' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/template. Rb:205:in `render_template' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/renderable_partial. Rb:44:in `render_partial' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/partials. Rb:184:in `render_partial' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/base. Rb:267:in `render' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/renderable. Rb:34:in `send' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/renderable. Rb:34:in `render' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/base. Rb:306:in `with_template' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/renderable. Rb:30:in `render' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/template. Rb:205:in `render_template' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/base. Rb:265:in `render' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/base. Rb:352:in `_render_with_layout' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_view/base. Rb:262:in `render' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_controller/base. Rb:1250:in `render_for_file' C:/Ruby/lib/ruby/gems/1. 8/gems/actionpack-2.3.5/lib/action_controller/base. Rb:945:in `render_without_benchmar