lunes, 30 de noviembre de 2009

Active scaffold on ruby 1.8.7

If you have rails application 2.0.2 on ruby 1.8.6 and migrate your ruby to 1.8.7, but you have active scaffold working you will find some errors. So you need to change small code on active scaffold files. Here it goes

look for the file view_helper.rb

and change this line

@params_for[:controller] = '/' + @params_for[:controller] unless @params_for[:controller].first(1) == '/' # for namespaced controllers


  @params_for[:controller] = '/' + @params_for[:controller] unless @params_for[:controller].chars.first == '/' # for namespaced controllers

And you are done it works.

good luck.

No hay comentarios:

Publicar un comentario