This project is archived and is in readonly mode.
Simplified render breaks with nested models (partials)
-
DHH
- Assigned user set to josh
- Milestone cleared.
-
Andrew White
This is because in AC::RecordIdentifier.partial_path the controller_path is prepended to the tableized class name. Since your class name is namespaced under Quiz then you get File.join("quiz","quiz/questions/_question"). A workaround is to override the model_name class method and return an instance of AS::ModelName initialized with "Question" instead of the default "Quiz::Question"
Since there's an test for this behaviour I'm assuming that it's desired.
-
josh
@hmans could you post some failing unit tests plz
-
Repository
- State changed from new to resolved
(from [ea8488caef77cb8cf2031d344e74981ab6ea0e57]) Fixed simplified render with nested models [#2042 Simplified render breaks with nested models (partials) state:resolved] http://github.com/rails/rails/co...