search for: foo_things

Displaying 1 result from an estimated 1 matches for "foo_things".

Did you mean: do_things
2011 Apr 06
1
Time to fix PartialRenderer#partial_path
...reuse your partials is too big (especially with other code using your engine). module Foo class Engine < Rails::Engine; isolate_namespace Foo; end class ApplicationController < ActionController::Base; end class Thing < ActiveRecord::Base; end end Foo::Thing.connection.create_table(:foo_things) Foo::ApplicationController.new.view_context._partial_renderer.send(:partial_path, Foo::Thing.new) => "foo/foo/things/thing" I believe the solution should be to change the default behaviour or at least provide an option to stop rails from prefixing the partial_path. -- You received...