Displaying 1 result from an estimated 1 matches for "controller_namespac".
Did you mean:
controller_namespace
2011 Apr 06
1
Time to fix PartialRenderer#partial_path
...ster/actionpack/lib/action_view/renderer/partial_renderer.rb#L150-159
Normally this function grabs the partial to use with
model_name.partial_path which is great for default views (things/
_thing.html.erb) but as soon as you call it from a controller that is
nested it ends up giving you a path like controller_namespace/things/
_thing.html.erb. I can see the advantage of that (if you want
different partial for @thing in your admin namespace) but I think the
disadvantage of being unable to reuse your partials is too big
(especially with other code using your engine).
module Foo
class Engine < Rails::Engine;...