On Feb 23, 4:53 pm, "Sergio Cambra .:: entreCables - Symbol Servicios
Informáticos S.L. ::." <[email protected]> wrote:

> You get an error about find_template doesn't exist in ActionView::PathSet, but
> that method exist in ActionView::PathSet in rails 2.2, but it doesn't in
> rails 2.3

We've got the same problem here.

In fact on osx everything is fine, but on debian we have the same
problem.

I think this comes from the fact that 2 files in lib/extension/ are
defining ActionView::Base#template_exists? :
action_view_rendering.rb &  generic_view_paths.rb

These files are loading in environment.rb by :

Dir["#{File.dirname __FILE__}/lib/extensions/*.rb"].each { |file|
require file }

On osx we have :

pp Dir['lib/extensions/*.rb']
["lib/extensions/action_controller_rendering.rb",
 "lib/extensions/action_view_rendering.rb",
 "lib/extensions/array.rb",
 "lib/extensions/component_response_with_namespacing.rb",
 "lib/extensions/generic_view_paths.rb",
 "lib/extensions/localize.rb",
 "lib/extensions/name_option_for_datetime.rb",
 "lib/extensions/nil_id_in_url_params.rb",
 "lib/extensions/resources.rb",
 "lib/extensions/reverse_associations.rb",
 "lib/extensions/to_label.rb",
 "lib/extensions/unsaved_associated.rb",
 "lib/extensions/unsaved_record.rb",
 "lib/extensions/usa_state.rb"]

and on debian :

pp Dir['extensions/*.rb']
["extensions/to_label.rb",
 "extensions/unsaved_record.rb",
 "extensions/component_response_with_namespacing.rb",
 "extensions/nil_id_in_url_params.rb",
 "extensions/action_controller_rendering.rb",
 "extensions/resources.rb",
 "extensions/name_option_for_datetime.rb",
 "extensions/array.rb",
 "extensions/unsaved_associated.rb",
 "extensions/usa_state.rb",
 "extensions/action_view_rendering.rb",
 "extensions/generic_view_paths.rb",
 "extensions/localize.rb",
 "extensions/reverse_associations.rb"]

so the 2 files are not loaded in the same order.
In osx, the ActionView::Base#template_exists? of generic_view_paths.rb
wich is used and works.
And on some (?) linux, this is the one in action_view_rendering.rb
which doesn't seem to work.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

  • In... RustyHack
    • ... chris guirl
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
      • ... njs
        • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
          • ... Arthur
          • ... mdmonsen
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
      • ... njs
        • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
          • ... njs
            • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
              • ... njs
                • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
                • ... njs

Reply via email to