RenderController: missing default helper path render_helper

Salve,
Utilizzo Netbeans 6.0 per lo sviluppo con InstantRails 1.7 e ruby 1.8.6
(2007-03-13 patchlevel 0) [i386-mswin32].
Quando faccio partire la mia applicazione sotto netbeans con mongrel mi
viene fuori un log contenente diversi errori. Le pagine vengono
visualizzate correttamente…sembra.
Come posso eliminarli? Sono importanti?
Grazie mille.

Gli errori sono questi:

Rendering
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/templates/rescues/layout.rhtml
(404 Page Not Found)

RenderController: missing default helper path render_helper

ActionController::RoutingError (no route found to match
“/render/__utm.js” with {:method=>:get}):

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1292:in

`recognize_path’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1282:in

`recognize’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in

`dispatch’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:78:in

`process’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:76:in

`synchronize’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/rails.rb:76:in

`process’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:618:in

`process_client’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in

`each’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:617:in

`process_client’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in

`run’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in

`initialize’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in

`new’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:736:in

`run’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in

`initialize’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in

`new’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel.rb:720:in

`run’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:271:in

`run’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:270:in

`each’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/configurator.rb:270:in

`run’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:127:in

`run’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/mongrel/command.rb:211:in

`run’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/bin/mongrel_rails:243

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in

`load’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in

`load’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in

`new_constants_in’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in

`load’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60

E:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in

`gem_original_require’

E:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in

`require’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in

`require’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in

`new_constants_in’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in

`require’

E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39

E:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in

`gem_original_require’

E:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in

`require’

script/server:3

Carlo Sorda wrote:

[…]
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/templates/rescues/layout.rhtml
(404 Page Not Found)

RenderController: missing default helper path render_helper

Questo è facile. Manca il file apps/helpers/render_helper.rb
Magari hai creato il controller a mano e non con scripts/generate
controller che crea tutti i file necessari. Niente di grave, basta che
crei tu il file con dentro solo

module RenderHelper
end

Nota comunque che l’applicazione dovrebbe funzionare lo stesso anche
senza l’helper.

ActionController::RoutingError (no route found to match
“/render/__utm.js” with {:method=>:get}):

Questo invece è un po’ più strano.
Guardando l’url sembra che render sia il nome di un controller e _utm.js
un partial (nota i tuoi due underscore). La combinazione mi
insospettisce dato che di solito si usa

render :partial => “_utm.js”

ma senza l’_ visto che ce lo mette Rails.
Non vorrei allora che ci sia stato qualche fraintendimento sull’uso di
questo metodo.

Di più non ti so dire senza vedere il tuo codice.

Paolo

Ciao,
grazie mille ho eliminato il problema dell’helper.
Buon lavoro.

Paolo M. wrote:

Carlo Sorda wrote:

[…]
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/templates/rescues/layout.rhtml
(404 Page Not Found)

RenderController: missing default helper path render_helper