El Tuesday 17 March 2009 23:08:06 nightrider escribió:
> I've tried a bunch of things to add my view path to the
> active_scaffold paths in a plugin, but non seem to be working.  I know
> I can can add my views directly through my controllers view_paths, but
> I'm wondering how to access the active_scaffold views path variable.
> Also, is there a reason that you chose to continue to use your own
> view paths instead of having them be picked up by the new engines
> functionality for Rails 2.3?

We can't use engines functionality from rails 2.3
To render a view named index for example, rails would search views 
named "controller_name/index" in each view path. We override rails code so 
when a view isn't found, we search for that view (without controller_name) in 
active_scaffold view paths (active_scaffold_overrides, frontends view paths, 
and paths added by plugins)

>
> thanks
> 


-- 
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

  • Ho... nightrider
    • ... nightrider
      • ... Bassel Samman
        • ... naaano
          • ... nightrider
            • ... Meech
              • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
      • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to